Cargo Features

[dependencies]
fuel-crypto = { version = "0.49.0", default-features = false, features = ["std", "alloc", "random", "serde", "test-helpers"] }
default = std

These default features are set whenever fuel-crypto is added without default-features = false somewhere in the dependency tree.

Enables fuel-types

std default = alloc, coins-bip32, coins-bip39, lazy_static, secp256k1

Enables optional serde, std of fuel-types and std_rng of optional rand

rand:

Option (enabled by default): enable StdRng

Affects secret::W

alloc std

Enables alloc of secp256k1 ^0.26

rand-std is used to further protect the blinders from side-channel attacks and won't compromise the deterministic arguments of the signature (key, nonce, message), as defined in the RFC-6979

and alloc of fuel-types and optional rand

rand:

Option: "alloc" enables support for Vec and Box when not using "std"

random = rand

Enables random of fuel-types

Affects k256::random_secret, secp256k1::random_secret

serde

Enables serde, serde of fuel-types

test-helpers

Affects p256::sign_prehashed, p256::encode_pubkey

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

coins-bip32 std
coins-bip39 std
lazy_static std
rand random?
secp256k1 alloc? std

Enables secp256k1 ^0.26