fix: verify proofData is 4 items
This commit is contained in:
parent
6689c95eea
commit
39903f03e5
|
@ -107,6 +107,10 @@ func (m *MediaMetadata) decodeProof(dec *msgpack.Decoder) error {
|
||||||
var pubkey []byte
|
var pubkey []byte
|
||||||
var signature []byte
|
var signature []byte
|
||||||
|
|
||||||
|
if len(proofData) != 4 {
|
||||||
|
return errors.New("Invalid proof data length")
|
||||||
|
}
|
||||||
|
|
||||||
for j := 0; j < len(proofData); j++ {
|
for j := 0; j < len(proofData); j++ {
|
||||||
|
|
||||||
switch j {
|
switch j {
|
||||||
|
|
Loading…
Reference in New Issue