From c3777abd81442e6f53ce5da108832c1f4bfb5940 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 2 Jun 2023 09:04:25 -0300 Subject: [PATCH] fix "if this is a private key" section. --- src/main/scala/Components.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/Components.scala b/src/main/scala/Components.scala index 110ec7d..e67360c 100644 --- a/src/main/scala/Components.scala +++ b/src/main/scala/Components.scala @@ -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:",