A Go library that helps generating Event of go-nostr
You can create and sign nostr events with less code
sk := nostr.GeneratePrivateKey()
cev := nostrevent.NewNote("Hello World!")
cev.SignPk(sk)
sk := nostr.GeneratePrivateKey()
pub, _ := nostr.GetPublicKey(sk)
ev := nostr.Event{
PubKey: pub,
CreatedAt: time.Now(),
Kind: 1,
Tags: nil,
Content: "Hello World!",
}
ev.Sign(sk)
import nostrevent "github.com/foxytanuki/go-nostr-event"
or
go get -u github.com/foxytanuki/go-nostr-event
go run example/post_note.go