From 8d7383c46616ca5b0c4d4f12c7423acfebfba152 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Mar 2024 01:35:54 -0500 Subject: [PATCH] fix: check 1st byte of pubkey, not mhashType --- metadata/media_metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/media_metadata.go b/metadata/media_metadata.go index f5e210f..6241670 100644 --- a/metadata/media_metadata.go +++ b/metadata/media_metadata.go @@ -122,7 +122,7 @@ func (m *MediaMetadata) decodeProof(dec *msgpack.Decoder) error { case 2: pubkey = proofData[j].([]byte) - if types.HashType(mhashType) != types.HashTypeEd25519 { + if types.HashType(pubkey[0]) != types.HashTypeEd25519 { return errors.New("Invalid public key type") }