Cargo Features

[dependencies]
solana-secp256k1-schnorr = { version = "0.2.2", default-features = false, features = ["sign", "bip340", "keccak256", "sha256"] }
default = bip340, keccak256, sha256, sign

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

sign default
bip340 default = solana-nostd-sha256

Affects challenges::bip340

keccak256 default = solana-nostd-keccak

Affects challenges::keccak256

sha256 default = solana-nostd-sha256

Affects challenges::sha256

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.

solana-nostd-sha256 bip340 sha256
solana-nostd-keccak keccak256