fix "if this is a private key" section.

This commit is contained in:
fiatjaf 2023-06-02 09:04:25 -03:00
parent 746a13861d
commit c3777abd81
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -41,11 +41,11 @@ object Components {
),
entry(
"npub",
NIP19.encode(XOnlyPublicKey(bytes32))
NIP19.encode(PrivateKey(bytes32).publicKey.xonly)
),
nip19_21(
"nprofile",
NIP19.encode(ProfilePointer(XOnlyPublicKey(bytes32)))
NIP19.encode(ProfilePointer(PrivateKey(bytes32).publicKey.xonly))
)
),
"if this is an event id:",