Module crypto

Module crypto 

Source
Expand description

Cryptographic primitives and key derivation.

Modules§

address
Address derivation utilities.
keys
Key derivation for the Aztec protocol.
pedersen
Pedersen hash on the Grumpkin curve.
schnorr
Schnorr signature scheme on the Grumpkin curve.

Structs§

DerivedKeys
The complete set of derived keys from a secret key.
SchnorrSignature
A Schnorr signature (s, e) on the Grumpkin curve.

Enums§

KeyType
Identifies a key type for app-scoped derivation.

Functions§

complete_address_from_secret_key_and_partial_address
Derive a complete address from a secret key and partial address.
compute_address
Compute an Aztec address from public keys and a partial address.
compute_app_nullifier_hiding_key
Compute the app-scoped nullifier hiding key.
compute_app_secret_key
Compute an app-scoped secret key from a master key and app address.
compute_ovsk_app
Compute the app-scoped outgoing viewing secret key.
compute_secret_hash
Hash a secret for use in L1-L2 message flow and TransparentNote.
derive_keys
Derive the complete key set from a secret key.
derive_master_incoming_viewing_secret_key
Derive the master incoming viewing secret key from a secret key.
derive_master_nullifier_hiding_key
Derive the master nullifier hiding key from a secret key.
derive_master_outgoing_viewing_secret_key
Derive the master outgoing viewing secret key from a secret key.
derive_master_tagging_secret_key
Derive the master tagging secret key from a secret key.
derive_public_key_from_secret_key
Derive a Grumpkin public key from a secret key via scalar multiplication.
derive_signing_key
Derive the signing key from a secret key.
pedersen_hash
Compute the Pedersen hash of a slice of field elements.
schnorr_sign
Sign a message with a Grumpkin private key using Schnorr.
schnorr_verify
Verify a Schnorr signature against a public key and message hash.
sha512_to_grumpkin_scalar
Compute SHA-512 of the concatenated inputs and reduce to a Grumpkin scalar.