fix: verify proofData is 4 items

This commit is contained in:
Derrick Hammer 2024-03-01 02:08:54 -05:00
parent 6689c95eea
commit 39903f03e5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,10 @@ func (m *MediaMetadata) decodeProof(dec *msgpack.Decoder) error {
var pubkey []byte
var signature []byte
if len(proofData) != 4 {
return errors.New("Invalid proof data length")
}
for j := 0; j < len(proofData); j++ {
switch j {