remove note1 encoding.

This commit is contained in:
fiatjaf 2024-11-19 07:47:11 -03:00
parent 5d32739573
commit 9d619ddf00

View File

@ -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) exitIfLineProcessingError(ctx)
return nil return nil
}, },