From bca4362ca59f418f452f162be8b97ca838e989fe Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 12 Jul 2024 19:15:13 -0300 Subject: [PATCH] fix inconsistency in nak key decrypt output: print hex always. --- key.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/key.go b/key.go index 7c9d28a..ad66e63 100644 --- a/key.go +++ b/key.go @@ -116,8 +116,7 @@ var decrypt = &cli.Command{ if err != nil { return fmt.Errorf("failed to decrypt: %s", err) } - nsec, _ := nip19.EncodePrivateKey(sec) - stdout(nsec) + stdout(sec) return nil case 1: if arg := c.Args().Get(0); strings.HasPrefix(arg, "ncryptsec1") { @@ -136,8 +135,7 @@ var decrypt = &cli.Command{ ctx = lineProcessingError(ctx, "failed to decrypt: %s", err) continue } - nsec, _ := nip19.EncodePrivateKey(sec) - stdout(nsec) + stdout(sec) } return nil }