Cargo Features

[dependencies]
tofn = { version = "1.1.0", default-features = false, features = ["secp256k1", "ed25519"] }
default = ed25519, secp256k1

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

secp256k1 default

Enables k256

Ecdsa deps

and crypto-bigint and ecdsa

ecdsa:

needed only for FromDigest trait

Affects constants::ECDSA_TAG, crypto_tools::k256_serde, tofn::ecdsa, crypto_tools::rng

ed25519 default

Enables ed25519 and ed25519-dalek

ed25519:

Ed25519 deps

Affects constants::ED25519_TAG, tofn::ed25519, crypto_tools::rng