Calculate a cryptographic digest of the fingerprint.
fingerprint
:
bytes
– the fingerprint
bytes
– the digest
Generate a pair of cryptographic keys.
ec.EllipticCurvePrivateKey
– the keys
Generate a pair of cryptographic keys with a mnemonic for the private key.
(str, ec.EllipticCurvePrivateKey)
– the mnemonic and the keys
Restore a private key from the given mnemonic.
mnemonic
:
str
– the mnemonic
ec.EllipticCurvePrivateKey
– the private key
Convert a private key to the raw format to pass to the client.
private_key
:
ec.EllipticCurvePrivateKey
– the private key
bytes
– the raw private key
Convert a public key to the raw format used by the naming server.
public_key
:
ec.EllipticCurvePublicKey
– the public key
bytes
– the raw public key
Restore a private key from the raw format.
raw_private_key
:
bytes
– the raw private key
ec.EllipticCurvePrivateKey
– the private key
Restore a public key from the raw format.
raw_public_key
:
bytes
– the raw public key
ec.EllipticCurvePublicKey
– the public key
Sign a fingerprint with a private key.
fingerprint
:
bytes
– the fingerprint to be signed
private_key
:
ec.EllipticCurvePrivateKey
– the private key
bytes
– the signature
Verify a fingerprint signature with the given public key.
fingerprint
:
bytes
– the original fingerprint
signature
:
bytes
– the signature to be verified
public_key
:
ec.EllipticCurvePublicKey
– the public key for verification
bool
– True
, if the signature is correct, False
otherwise