create new tag constructors for more flexibility

This commit is contained in:
2025-08-30 13:34:04 +01:00
parent acee5e3a90
commit 3867b87b8b
4 changed files with 23 additions and 15 deletions

View File

@@ -32,8 +32,8 @@ func CreateUnsigned(pubkey, challenge []byte, relayURL string) (ev *event.E) {
CreatedAt: time.Now().Unix(),
Kind: kind.ClientAuthentication.K,
Tags: tag.NewS(
tag.New("relay", relayURL),
tag.New("challenge", string(challenge)),
tag.NewFromAny("relay", relayURL),
tag.NewFromAny("challenge", string(challenge)),
),
}
}