🚀 Initializing HAVEN

This commit is contained in:
Barry Deen
2024-09-22 23:28:25 -04:00
commit 5097bb716c
12 changed files with 1218 additions and 0 deletions

13
util.go Normal file
View File

@@ -0,0 +1,13 @@
package main
import (
"github.com/nbd-wtf/go-nostr/nip19"
)
func nPubToPubkey(nPub string) string {
_, v, err := nip19.Decode(nPub)
if err != nil {
panic(err)
}
return v.(string)
}