Cargo Features

[dependencies]
fuel-crypto = { version = "0.58.2", 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 optional secp256k1 ^0.29.1

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

Enables coins-bip32 ^0.8

coins-bip39 std

Enables coins-bip39 ^0.8

lazy_static std
rand random?
secp256k1 std

Enables secp256k1 ^0.29.1