fix: check 1st byte of pubkey, not mhashType
This commit is contained in:
parent
5b7d786662
commit
8d7383c466
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue