Crate fuel_crypto

Source
Expand description

Fuel cryptographic primitives.

Re-exports§

pub use coins_bip32;std
pub use coins_bip39;std
pub use fuel_types;
pub use rand;random

Modules§

ed25519
ED25519 signature verification
secp256r1
secp256r1 implementations

Structs§

Hasher
Standard hasher
Message
Normalized (hashed) message authenticated by a signature
PublicKey
Asymmetric secp256k1 public key, i.e. verifying key, in uncompressed form. https://github.com/FuelLabs/fuel-specs/blob/master/src/protocol/cryptographic-primitives.md#ecdsa-public-key-cryptography
SecretKey
Asymmetric secret key, guaranteed to be valid by construction
Signature
Compressed-form Secp256k1 signature.

Enums§

Error
Crypto error variants

Functions§

generate_mnemonic_phrasestd and random
Generates a random mnemonic phrase given a random number generator and the number of words to generate, count.