add nip31, nip52, nip94.

This commit is contained in:
fiatjaf
2024-01-10 10:09:17 -03:00
parent 7b292775c0
commit 1800f2e590
4 changed files with 252 additions and 0 deletions

12
nip31/nip31.go Normal file
View File

@@ -0,0 +1,12 @@
package nip31
import "github.com/nbd-wtf/go-nostr"
func GetAlt(event nostr.Event) string {
for _, tag := range event.Tags {
if len(tag) >= 2 && tag[0] == "alt" {
return tag[1]
}
}
return ""
}