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 280e5b1d71
commit 6689c95eea
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 3 deletions

View File

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