MCPcopy Index your code

hub / github.com/nats-io/nkeys / functions

Functions128 in github.com/nats-io/nkeys

↓ 24 callersMethodPublicKey
()
nk/main.go:54
↓ 16 callersMethodSeed
()
nk/main.go:53
↓ 13 callersFunctionEncode
Encode will encode a raw key or seed with the prefix and crc16 and then base32 encoded.
strkey.go:59
↓ 12 callersFunctionDecode
Decode will decode the base32 string and check crc16 and enforce the prefix is what is expected.
strkey.go:156
↓ 12 callersMethodSign
Sign is only supported on Non CurveKeyPairs
nkeys.go:30
↓ 11 callersFunctionCreateUser
CreateUser will create a User typed KeyPair.
nkeys.go:43
↓ 10 callersFunctionCreatePair
CreatePair will create a KeyPair based on the rand entropy and a type/prefix byte.
keypair.go:32
↓ 10 callersFunctionDecodeSeed
DecodeSeed will decode the base32 string and check crc16 and enforce the prefix is a seed and the subsequent type is a valid type.
strkey.go:173
↓ 10 callersMethodVerify
Verify is only supported on Non CurveKeyPairs
nkeys.go:32
↓ 9 callersFunctionFromPublicKey
FromPublicKey will create a KeyPair capable of verifying signatures.
nkeys.go:68
↓ 9 callersFunctionFromSeed
FromSeed will create a KeyPair capable of signing and verifying signatures.
nkeys.go:77
↓ 8 callersMethodString
()
strkey.go:291
↓ 8 callersFunctiondecode
decode will decode the base32 and check crc16 and the prefix for validity.
strkey.go:133
↓ 7 callersFunctionEncodeSeed
EncodeSeed will encode a raw key with the prefix and then seed prefix and crc16 and then base32 encoded. `src` must be 32 bytes long (ed25519.SeedSize
strkey.go:90
↓ 7 callersMethodOpen
Open is only supported on CurveKey
nkeys.go:39
↓ 6 callersFunctionCreateAccount
CreateAccount will create an Account typed KeyPair.
nkeys.go:48
↓ 6 callersFunctionIsValidPublicKey
IsValidPublicKey will decode and verify that the string is a valid encoded public key.
strkey.go:214
↓ 5 callersFunctionCreateCurveKeys
CreateCurveKeys will create a Curve typed KeyPair.
xkeys.go:43
↓ 5 callersFunctionPrefix
Prefix returns PrefixBytes of its input
strkey.go:195
↓ 5 callersMethodSeal
Seal is only supported on CurveKeyPair
nkeys.go:35
↓ 4 callersFunctioncrc16
crc16 returns the 2-byte crc for the data provided.
crc16.go:54
↓ 4 callersMethodkeys
keys will return a 32 byte public key and a 64 byte private key utilizing the seed.
keypair.go:60
↓ 4 callersFunctionreadKeyFile
(filename string)
nk/main.go:307
↓ 3 callersFunctionCreateCurveKeysWithRand
CreateCurveKeysWithRand will create a Curve typed KeyPair with specified rand source.
xkeys.go:49
↓ 3 callersFunctionParseDecoratedNKey
ParseDecoratedNKey takes a creds file, finds the NKey portion and creates a key pair from it.
creds_utils.go:27
↓ 3 callersMethodPrivateKey
()
nkeys.go:28
↓ 3 callersFunctioncheckValidPrefixByte
checkValidPrefixByte returns an error if the provided value is not one of the defined valid prefix byte constants.
strkey.go:272
↓ 3 callersFunctioncheckValidPublicPrefixByte
checkValidPublicPrefixByte returns an error if the provided value is not one of the public defined valid prefix byte constants.
strkey.go:283
↓ 3 callersFunctiontestCurve
(t *testing.T, kp KeyPair)
xkeys_test.go:22
↓ 3 callersFunctiontestSealOpen
(t *testing.T, prefixByte PrefixByte)
nkeys_test.go:749
↓ 3 callersFunctionvalidate
validate will check the calculated crc16 checksum for data against the expected.
crc16.go:63
↓ 2 callersFunctionCreateCluster
CreateCluster will create a Cluster typed KeyPair.
nkeys.go:58
↓ 2 callersFunctionCreateOperator
CreateOperator will create an Operator typed KeyPair.
nkeys.go:63
↓ 2 callersFunctionCreatePairWithRand
CreatePair will create a KeyPair based on the rand reader and a type/prefix byte. rand can be nil.
keypair.go:37
↓ 2 callersFunctionCreateServer
CreateServer will create a Server typed KeyPair.
nkeys.go:53
↓ 2 callersFunctionFromCurveSeed
Will create a curve key pair from seed.
xkeys.go:60
↓ 2 callersFunctionParseDecoratedJWT
ParseDecoratedJWT takes a creds file and returns the JWT portion.
creds_utils.go:12
↓ 2 callersMethodSealWithRand
SealWithRand is only supported on CurveKeyPair
nkeys.go:37
↓ 2 callersMethodWipe
()
nkeys.go:33
↓ 2 callersFunctiondecodePubCurveKey
(src string, dest []byte)
xkeys.go:91
↓ 2 callersFunctiondecodePublicKey
(public string)
strkey.go:219
↓ 2 callersFunctionencodeTestSeed
(public PrefixByte, src []byte)
nkeys_test.go:463
↓ 2 callersFunctiongenKeyPair
(pre nkeys.PrefixByte, entropy string)
nk/main.go:226
↓ 2 callersFunctionpreForType
(keyType string)
nk/main.go:204
↓ 1 callersFunctionCompatibleKeyPair
CompatibleKeyPair returns an error if the KeyPair doesn't match expected PrefixByte(s)
strkey.go:314
↓ 1 callersMethodError
()
errors.go:48
↓ 1 callersFunctionFromRawSeed
FromRawSeed will create a KeyPair from the raw 32 byte seed for a given type.
nkeys.go:90
↓ 1 callersFunctionIsValidEncoding
IsValidEncoding will tell you if the encoding is a valid key.
strkey.go:127
↓ 1 callersFunctionIsValidPublicAccountKey
IsValidPublicAccountKey will decode and verify the string is a valid encoded Public Account Key.
strkey.go:241
↓ 1 callersFunctionIsValidPublicClusterKey
IsValidPublicClusterKey will decode and verify the string is a valid encoded Public Cluster Key.
strkey.go:253
↓ 1 callersFunctionIsValidPublicCurveKey
IsValidPublicCurveKey will decode and verify the string is a valid encoded Public Curve Key.
strkey.go:265
↓ 1 callersFunctionIsValidPublicOperatorKey
IsValidPublicOperatorKey will decode and verify the string is a valid encoded Public Operator Key.
strkey.go:259
↓ 1 callersFunctionIsValidPublicServerKey
IsValidPublicServerKey will decode and verify the string is a valid encoded Public Server Key.
strkey.go:247
↓ 1 callersFunctionIsValidPublicUserKey
IsValidPublicUserKey will decode and verify the string is a valid encoded Public User Key.
strkey.go:235
↓ 1 callersFunctionParseDecoratedUserNKey
ParseDecoratedUserNKey takes a creds file, finds the NKey portion and creates a key pair from it. Similar to ParseDecoratedNKey but fails for non-user
creds_utils.go:61
↓ 1 callersMethodPrivateKey
PrivateKey will return the encoded private key for KeyPair.
keypair.go:98
↓ 1 callersMethodPublicKey
PublicKey will return the encoded public key associated with the KeyPair. All KeyPairs have a public key.
keypair.go:81
↓ 1 callersMethodSealWithRand
(input []byte, recipient string, rr io.Reader)
xkeys.go:132
↓ 1 callersMethodSign
Sign will sign the input with KeyPair's private key.
keypair.go:107
↓ 1 callersMethodVerify
Verify will verify the input against a signature utilizing the public key.
public.go:54
↓ 1 callersFunctioncreateVanityKey
(keyType, vanity, entropy string, max int)
nk/main.go:256
↓ 1 callersFunctionprintPublicFromSeed
(keyFile string)
nk/main.go:132
↓ 1 callersMethodrawSeed
rawSeed will return the raw, decoded 64 byte seed.
keypair.go:54
↓ 1 callersFunctionsign
(fname, keyFile string)
nk/main.go:142
↓ 1 callersFunctionusage
()
nk/main.go:36
↓ 1 callersFunctionverify
(fname, keyFile, pubFile, sigFile string)
nk/main.go:164
↓ 1 callersFunctionwipeSlice
(buf []byte)
nk/main.go:329
FunctionBenchmarkDecode
(b *testing.B)
strkey_test.go:22
FunctionBenchmarkPublicVerify
(b *testing.B)
nkeys_test.go:662
FunctionBenchmarkSign
(b *testing.B)
nkeys_test.go:620
FunctionBenchmarkVerify
(b *testing.B)
nkeys_test.go:639
MethodOpen
(input []byte, sender string)
xkeys.go:151
MethodOpen
Open is only supported on CurveKey
keypair.go:138
MethodOpen
(input []byte, sender string)
public.go:83
MethodPrivateKey
PrivateKey will return the encoded private key.
xkeys.go:87
MethodPrivateKey
PrivateKey will return an error since this is not available for public key only KeyPairs.
public.go:44
MethodPublicKey
PublicKey will return the encoded public key.
xkeys.go:79
MethodPublicKey
()
nkeys.go:27
MethodPublicKey
PublicKey will return the encoded public key associated with the KeyPair. All KeyPairs have a public key.
public.go:30
MethodSeal
Seal is compatible with nacl.Box.Seal() and can be used in similar situations for small messages. We generate the nonce from crypto rand by default.
xkeys.go:128
MethodSeal
Seal is only supported on CurveKeyPair
keypair.go:128
MethodSeal
(input []byte, recipient string)
public.go:70
MethodSealWithRand
SealWithRand is only supported on CurveKeyPair
keypair.go:133
MethodSealWithRand
(input []byte, _recipient string, rr io.Reader)
public.go:76
MethodSeed
Seed will return the encoded seed.
xkeys.go:74
MethodSeed
Seed will return the encoded seed.
keypair.go:75
MethodSeed
()
nkeys.go:26
MethodSeed
Seed will return an error since this is not available for public key only KeyPairs.
public.go:39
MethodSign
(_ []byte)
xkeys.go:181
MethodSign
Sign will return an error since this is not available for public key only KeyPairs.
public.go:49
FunctionTestAccount
(t *testing.T)
nkeys_test.go:134
FunctionTestBadDecode
(t *testing.T)
nkeys_test.go:500
FunctionTestCluster
(t *testing.T)
nkeys_test.go:232
FunctionTestCurveFromCreateCurveKeys
(t *testing.T)
xkeys_test.go:76
FunctionTestCurveFromCreatePair
(t *testing.T)
xkeys_test.go:87
FunctionTestCurveFromKeyPair
(t *testing.T)
xkeys_test.go:112
FunctionTestCurveFromSeed
(t *testing.T)
xkeys_test.go:98
FunctionTestCurvePublic
(t *testing.T)
xkeys_test.go:130
FunctionTestCurvePublicEmptyBug
(t *testing.T)
xkeys_test.go:158
FunctionTestDecode
(t *testing.T)
nkeys_test.go:72
next →1–100 of 128, ranked by callers