fix: don't actually hash the prefix

This commit is contained in:
Derrick Hammer 2024-03-01 02:36:11 -05:00
parent 7c6d11258f
commit f350a37e58
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ func (m *MediaMetadata) decodeProof(dec *msgpack.Decoder) error {
childDec := msgpack.NewDecoder(bytes.NewReader(all[:proofSectionLength]))
b3hash := blake3.Sum256(append([]byte{byte(types.HashTypeBlake3)}, bodyBytes...))
hash := blake3.Sum256(bodyBytes)
b3hash := append([]byte{byte(types.HashTypeBlake3)}, hash[:]...)
arrayLen, err := childDec.DecodeArrayLen()
if err != nil {