fix: need to store state vars outside proofData loop

This commit is contained in:
Derrick Hammer 2024-03-01 01:41:15 -05:00
parent 578cdba32e
commit 258031cb8f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 3 deletions

View File

@ -103,10 +103,11 @@ func (m *MediaMetadata) decodeProof(dec *msgpack.Decoder) error {
return err return err
} }
var hashType int8
var pubkey []byte
var signature []byte
for j := 0; j < len(proofData); j++ { for j := 0; j < len(proofData); j++ {
var hashType int8
var pubkey []byte
var signature []byte
switch j { switch j {
case 0: case 0: