change eventid to use an array

This commit is contained in:
2024-12-03 11:30:56 +00:00
parent b16f767860
commit 0048ac8a57
7 changed files with 70 additions and 46 deletions

View File

@@ -99,7 +99,7 @@ func Decode(bech32string by) (prefix by, value any, err er) {
if len(v) < 32 {
return prefix, nil, errorf.E("id is less than 32 bytes (%d)", len(v))
}
result.ID, err = eventid.NewFromBytes(v)
result.ID = eventid.NewWith(v)
case TLVRelay:
result.Relays = append(result.Relays, v)
case TLVAuthor: