From 258031cb8f4d9bbe4b9b396a56c6ff135fb35eb6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Mar 2024 01:41:15 -0500 Subject: [PATCH] fix: need to store state vars outside proofData loop --- metadata/media_metadata.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/metadata/media_metadata.go b/metadata/media_metadata.go index 9decb28..52782ed 100644 --- a/metadata/media_metadata.go +++ b/metadata/media_metadata.go @@ -103,10 +103,11 @@ func (m *MediaMetadata) decodeProof(dec *msgpack.Decoder) error { return err } + var hashType int8 + var pubkey []byte + var signature []byte + for j := 0; j < len(proofData); j++ { - var hashType int8 - var pubkey []byte - var signature []byte switch j { case 0: