Cargo Features

ic_bls12_381 = { version = "0.8.0", default-features = false, features = ["alloc", "bits", "groups", "pairings", "experimental", "nightly", "zeroize"] }
default = alloc, bits, groups, pairings

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

alloc default

Enables alloc of group ^0.12

Affects expand_msg::ExpandMessageState.into_vec, pairings::G2Prepared, pairings::multi_miller_loop

bits default

Enables bits of ff ^0.12

groups default pairings = group
pairings default = groups, pairing
experimental = digest

Affects ic_bls12_381::hash_to_curve


Enables nightly of subtle


DEPRECATED: As of 2.4.1, this feature does nothing.

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.

zeroize implicit feature
digest experimental?

Enables digest ^0.9

pairing pairings

Enables pairing ^0.22

group alloc groups

Enables group ^0.12