left pad keys on nak key too so nak key public 02 works, for example.

This commit is contained in:
fiatjaf
2024-07-12 14:04:14 -03:00
parent 79cb63a1b4
commit 27f925c05e
2 changed files with 6 additions and 1 deletions

1
key.go
View File

@@ -269,6 +269,7 @@ func getSecretKeysFromStdinLinesOrSlice(ctx context.Context, c *cli.Command, key
}
sec = data.(string)
}
sec = leftPadKey(sec)
if !nostr.IsValid32ByteHex(sec) {
ctx = lineProcessingError(ctx, "invalid hex key")
continue