nip19, subscription, publication code examples added to README.md

fixed typo in example/example.go
This commit is contained in:
Dylan Cant
2023-01-13 22:07:08 -05:00
committed by fiatjaf
parent 92ce379649
commit f149ee8b4e
2 changed files with 70 additions and 2 deletions

View File

@ -37,7 +37,7 @@ func main() {
if _, v, err := nip19.Decode(npub); err == nil {
t := make(map[string][]string)
// making a "p" tag for the above public key.
// this filters for messages tagged with the user "npub1sg6plz..." (mainly replies to this user).
// this filters for messages tagged with the user, mainly replies.
t["p"] = []string{v.(string)}
filters = []nostr.Filter{{
Kinds: []int{1},