)// EncodeDedupKey returns encoded cbor data for string keyfuncEncodeDedupKey(keystring)([]byte,error){nb:=basicnode.Style.String.NewBuilder()err:=nb.AssignString(key)iferr!=nil{returnnil,err}nd:=nb.Build()returnipldutil.EncodeNode(nd)}// DecodeDedupKey returns a string key decoded from cbor datafuncDecodeDedupKey(data[]byte)(string,error){nd,err:=ipldutil.DecodeNode(data)iferr!=nil{return"",err}returnnd.AsString()}