nak encrypt and nak decrypt: nip44 with option to do nip04.

closes https://github.com/fiatjaf/nak/issues/36
This commit is contained in:
fiatjaf
2024-09-17 11:28:26 -03:00
parent dae7eba8ca
commit a4886dc445
3 changed files with 146 additions and 4 deletions

8
key.go
View File

@@ -25,8 +25,8 @@ var key = &cli.Command{
Commands: []*cli.Command{
generate,
public,
encrypt,
decrypt,
encryptKey,
decryptKey,
combine,
},
}
@@ -62,7 +62,7 @@ var public = &cli.Command{
},
}
var encrypt = &cli.Command{
var encryptKey = &cli.Command{
Name: "encrypt",
Usage: "encrypts a secret key and prints an ncryptsec code",
Description: `uses the NIP-49 standard.`,
@@ -101,7 +101,7 @@ var encrypt = &cli.Command{
},
}
var decrypt = &cli.Command{
var decryptKey = &cli.Command{
Name: "decrypt",
Usage: "takes an ncrypsec and a password and decrypts it into an nsec",
Description: `uses the NIP-49 standard.`,