nip10: fix parsing when the reply is an "a". fix and test nip10.

This commit is contained in:
fiatjaf
2025-11-23 06:46:51 -03:00
parent 1284f91629
commit 8458e26291
3 changed files with 110 additions and 13 deletions

View File

@@ -166,7 +166,7 @@ func (ep EntityPointer) MatchesEvent(evt Event) bool {
}
func (ep EntityPointer) AsTagReference() string {
return fmt.Sprintf("%d:%s:%s", ep.Kind, ep.PublicKey, ep.Identifier)
return fmt.Sprintf("%d:%s:%s", ep.Kind, ep.PublicKey.Hex(), ep.Identifier)
}
func (ep EntityPointer) AsFilter() Filter {