Module hypercore::crypto [] [src]

Cryptographic functions.

Modules

key_pair

Generate an Ed25519 keypair.

Structs

Blake2bResult

Container for a hash result.

PublicKey

PublicKey for signatures

SecretKey

SecretKey for signatures

Signature

Detached signature

Functions

hash_leaf

Compute the hash of a leaf node using BLAKE2b.

hash_parent

Compute the hash of a parent node using BLAKE2b.

hash_roots

Hash a set of roots.

sign

Sign a piece of data using an Ed25519 secret key.

verify

Verify a piece of data's signature using an Ed25519 public key.