fixed small typo
This commit is contained in:
@@ -12,8 +12,8 @@ A set of useful things for [Nostr Protocol](https://github.com/nostr-protocol/no
|
|||||||
``` go
|
``` go
|
||||||
sk, _ := nostr.GenerateKey()
|
sk, _ := nostr.GenerateKey()
|
||||||
pk, _ := nostr.GetPublicKey(sk)
|
pk, _ := nostr.GetPublicKey(sk)
|
||||||
nsec, _ = nip19.EncodePrivateKey(sk)
|
nsec, _ := nip19.EncodePrivateKey(sk)
|
||||||
npub, _ = nip19.EncodePublicKey(pk)
|
npub, _ := nip19.EncodePublicKey(pk)
|
||||||
|
|
||||||
fmt.Println("sk:", sk)
|
fmt.Println("sk:", sk)
|
||||||
fmt.Println("pk:", nostr.GetPublicKey(sk))
|
fmt.Println("pk:", nostr.GetPublicKey(sk))
|
||||||
|
|||||||
Reference in New Issue
Block a user