Oddbean new post about | logout
 Looks like your nsec section shoud be like this?

  pk, _ := nostr.GetPublicKey(sk)
    nsec, _ := nip19.EncodePrivateKey(sk)
    npub, _ := nip19.EncodePublicKey(pk)