Calculate a cryptographic digest of the fingerprint.
fingerprint:
Buffer
– the fingerprint
Buffer
– the digest
Generate a pair of cryptographic keys.
Promise<crypto.KeyPairKeyObjectResult>
– the keys
Generate a private cryptographic key with a mnemonic.
Promise<[string, crypto.KeyObject]>
– the mnemonic and the key
Restore a private key from the given mnemonic.
mnemonic:
string
– the mnemonic
Promise<crypto.KeyObject>
– the private key
Convert a private key to the raw format to pass to the client.
privateKey:
crypto.KeyObject
– the private key
Buffer
– the raw private key
Convert a public key to the raw format used by the naming server.
publicKey:
crypto.KeyObject
– the public key
Buffer
– the raw public key
Restore a private key from the raw format.
rawPrivateKey:
Buffer
– the raw private key
crypto.KeyObject
– the private key
Restore a public key from the raw format.
rawPublicKey:
Buffer
– the raw public key
crypto.KeyObject
– the public key
Sign a fingerprint with a private key.
fingerprint:
Buffer
– the fingerprint to be signed
privateKey:
crypto.KeyObject
– the private key
Buffer
– the signature
Verify a fingerprint signature with the given public key.
fingerprint:
Buffer
– the original fingerprint
signature:
Buffer
– the signature to be verified
publicKey:
crypto.KeyObject
– the public key for verification
boolean
– true, if the signature is correct, false otherwise