1
0
mirror of https://github.com/fiatjaf/nak.git synced 2025-08-11 13:40:48 -04:00

reword NIP-XX to nipXX everywhere.

This commit is contained in:
fiatjaf
2025-01-29 19:13:30 -03:00
parent 943e8835f9
commit 6e43a6b733
8 changed files with 14 additions and 14 deletions

@@ -19,7 +19,7 @@ import (
var bunker = &cli.Command{
Name: "bunker",
Usage: "starts a NIP-46 signer daemon with the given --sec key",
Usage: "starts a nip46 signer daemon with the given --sec key",
ArgsUsage: "[relay...]",
Description: ``,
DisableSliceFlagSeparator: true,

@@ -15,7 +15,7 @@ import (
var count = &cli.Command{
Name: "count",
Usage: "generates encoded COUNT messages and optionally use them to talk to relays",
Description: `outputs a NIP-45 request (the flags are mostly the same as 'nak req').`,
Description: `outputs a nip45 request (the flags are mostly the same as 'nak req').`,
DisableSliceFlagSeparator: true,
Flags: []cli.Flag{
&cli.StringSliceFlag{

@@ -153,7 +153,7 @@ var encode = &cli.Command{
},
{
Name: "naddr",
Usage: "generate codes for NIP-33 parameterized replaceable events",
Usage: "generate codes for addressable events",
Flags: []cli.Flag{
&cli.StringFlag{
Name: "identifier",
@@ -189,7 +189,7 @@ var encode = &cli.Command{
kind := c.Int("kind")
if kind < 30000 || kind >= 40000 {
return fmt.Errorf("kind must be between 30000 and 39999, as per NIP-16, got %d", kind)
return fmt.Errorf("kind must be between 30000 and 39999, got %d", kind)
}
if d == "" {

@@ -65,7 +65,7 @@ example:
// ~~~
&cli.UintFlag{
Name: "pow",
Usage: "NIP-13 difficulty to target when doing hash work on the event id",
Usage: "nip13 difficulty to target when doing hash work on the event id",
Category: CATEGORY_EXTRAS,
},
&cli.BoolFlag{
@@ -75,7 +75,7 @@ example:
},
&cli.BoolFlag{
Name: "auth",
Usage: "always perform NIP-42 \"AUTH\" when facing an \"auth-required: \" rejection and try again",
Usage: "always perform nip42 \"AUTH\" when facing an \"auth-required: \" rejection and try again",
Category: CATEGORY_EXTRAS,
},
&cli.BoolFlag{

@@ -32,7 +32,7 @@ var defaultKeyFlags = []cli.Flag{
},
&cli.StringFlag{
Name: "connect-as",
Usage: "private key to use when communicating with NIP-46 bunkers",
Usage: "private key to use when communicating with nip46 bunkers",
DefaultText: "a random key",
Category: CATEGORY_SIGNER,
Sources: cli.EnvVars("NOSTR_CLIENT_KEY"),

4
key.go

@@ -71,7 +71,7 @@ var public = &cli.Command{
var encryptKey = &cli.Command{
Name: "encrypt",
Usage: "encrypts a secret key and prints an ncryptsec code",
Description: `uses the NIP-49 standard.`,
Description: `uses the nip49 standard.`,
ArgsUsage: "<secret> <password>",
DisableSliceFlagSeparator: true,
Flags: []cli.Flag{
@@ -110,7 +110,7 @@ var encryptKey = &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.`,
Description: `uses the nip49 standard.`,
ArgsUsage: "<ncryptsec-code> <password>",
DisableSliceFlagSeparator: true,
Action: func(ctx context.Context, c *cli.Command) error {

8
req.go

@@ -19,7 +19,7 @@ const (
var req = &cli.Command{
Name: "req",
Usage: "generates encoded REQ messages and optionally use them to talk to relays",
Description: `outputs a NIP-01 Nostr filter. when a relay is not given, will print the filter, otherwise will connect to the given relay and send the filter.
Description: `outputs a nip01 Nostr filter. when a relay is not given, will print the filter, otherwise will connect to the given relay and send the filter.
example:
nak req -k 1 -l 15 wss://nostr.wine wss://nostr-pub.wellorder.net
@@ -57,12 +57,12 @@ example:
},
&cli.BoolFlag{
Name: "auth",
Usage: "always perform NIP-42 \"AUTH\" when facing an \"auth-required: \" rejection and try again",
Usage: "always perform nip42 \"AUTH\" when facing an \"auth-required: \" rejection and try again",
},
&cli.BoolFlag{
Name: "force-pre-auth",
Aliases: []string{"fpa"},
Usage: "after connecting, for a NIP-42 \"AUTH\" message to be received, act on it and only then send the \"REQ\"",
Usage: "after connecting, for a nip42 \"AUTH\" message to be received, act on it and only then send the \"REQ\"",
Category: CATEGORY_SIGNER,
},
)...,
@@ -210,7 +210,7 @@ var reqFilterFlags = []cli.Flag{
},
&cli.StringFlag{
Name: "search",
Usage: "a NIP-50 search query, use it only with relays that explicitly support it",
Usage: "a nip50 search query, use it only with relays that explicitly support it",
Category: CATEGORY_FILTER_ATTRIBUTES,
},
}

@@ -55,7 +55,7 @@ func prepareWallet(ctx context.Context, c *cli.Command) (*nip60.WalletStash, err
var wallet = &cli.Command{
Name: "wallet",
Usage: "manage NIP-60 Cashu wallets",
Usage: "manage nip60 Cashu wallets",
DisableSliceFlagSeparator: true,
Flags: defaultKeyFlags,
ArgsUsage: "<wallet-identifier>",