From e9baacd55ef63352e4b3a416a119b200ceff586a Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 17 Jan 2024 11:29:54 -0500 Subject: [PATCH] fix: update CIDFromHash call --- encoding/cid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoding/cid.go b/encoding/cid.go index b1b3175..5894f4f 100644 --- a/encoding/cid.go +++ b/encoding/cid.go @@ -237,7 +237,7 @@ func (cid *CID) DecodeMsgpack(dec *msgpack.Decoder) error { } func CIDFromRegistryPublicKey(pubkey interface{}) (*CID, error) { - return CIDFromHash(pubkey, 0, types.CIDTypeResolver) + return CIDFromHash(pubkey, 0, types.CIDTypeResolver, types.HashTypeEd25519) } func decodeMsgpackCID(cid interface{}, dec *msgpack.Decoder) error {