From 9d619ddf00cdec3d8050bf8bf449d1f8a814590b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 19 Nov 2024 07:47:11 -0300 Subject: [PATCH] remove note1 encoding. --- encode.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/encode.go b/encode.go index 17d097d..f30feed 100644 --- a/encode.go +++ b/encode.go @@ -212,28 +212,6 @@ var encode = &cli.Command{ } } - exitIfLineProcessingError(ctx) - return nil - }, - }, - { - Name: "note", - Usage: "generate note1 event codes (not recommended)", - DisableSliceFlagSeparator: true, - Action: func(ctx context.Context, c *cli.Command) error { - for target := range getStdinLinesOrArguments(c.Args()) { - if ok := nostr.IsValid32ByteHex(target); !ok { - ctx = lineProcessingError(ctx, "invalid event id: %s", target) - continue - } - - if note, err := nip19.EncodeNote(target); err == nil { - stdout(note) - } else { - return err - } - } - exitIfLineProcessingError(ctx) return nil },