Cargo Features

[dependencies]
staging-bandersnatch_vrfs = { version = "0.0.4", default-features = false, features = ["std", "getrandom", "print-trace", "substrate-curves"] }
default = std

The std feature is set by default whenever staging-bandersnatch_vrfs is added without default-features = false somewhere in the dependency tree.

std default = getrandom

Enables std of ark-ec ^0.4, ark-ff ^0.4, ark-serialize ^0.4, ark-std ^0.4, staging-ring, optional staging-sp-ark-bls12-381, and optional staging-sp-ark-ed-on-bls12-381-bandersnatch

staging-sp-ark-ed-on-bls12-381-bandersnatch:

Substrate curves are optional and gated by the 'substrate-curves' feature

getrandom std

Enables getrandom of staging-dleq_vrf

staging-dleq_vrf:

"ark_transcript/getrandom", "rand_core/getrandom", "getrandom_or_panic/getrandom"

print-trace

Enables print-trace of ark-std ^0.4

substrate-curves = sp-ark-bls12-381, sp-ark-ed-on-bls12-381-bandersnatch

Substrate curves allows to offload computationally heavy tasks to Substrate host functions.
Mostly useful in Substrate development context when targeting wasm32 architecture.

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.

sp-ark-ed-on-bls12-381-bandersnatch substrate-curves?

Enables staging-sp-ark-ed-on-bls12-381-bandersnatch

sp-ark-bls12-381 substrate-curves?

Enables staging-sp-ark-bls12-381