mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-09 09:08:50 +00:00
fix "if this is a private key" section.
This commit is contained in:
@@ -41,11 +41,11 @@ object Components {
|
|||||||
),
|
),
|
||||||
entry(
|
entry(
|
||||||
"npub",
|
"npub",
|
||||||
NIP19.encode(XOnlyPublicKey(bytes32))
|
NIP19.encode(PrivateKey(bytes32).publicKey.xonly)
|
||||||
),
|
),
|
||||||
nip19_21(
|
nip19_21(
|
||||||
"nprofile",
|
"nprofile",
|
||||||
NIP19.encode(ProfilePointer(XOnlyPublicKey(bytes32)))
|
NIP19.encode(ProfilePointer(PrivateKey(bytes32).publicKey.xonly))
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
"if this is an event id:",
|
"if this is an event id:",
|
||||||
|
|||||||
Reference in New Issue
Block a user