Cargo Features

[dependencies]
jubjub-schnorr = { version = "0.3.0", default-features = false, features = ["std", "alloc", "rkyv-impl", "double", "var_generator", "multisig"] }
default = std

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

std default = alloc

Enables std of dusk-plonk and rand_core

alloc std

Enables alloc of dusk-bls12_381, dusk-plonk, and dusk-poseidon ^0.33

Affects jubjub-schnorr::gadgets

rkyv-impl = bytecheck, rkyv

Enables rkyv-impl of dusk-jubjub

double

Affects gadgets::verify_signature_double, public::PublicKeyDouble, jubjub-schnorr::Proof, signatures::SignatureDouble

var_generator

Affects gadgets::verify_signature_var_gen, public::PublicKeyVarGen, secret::SecretKeyVarGen, signatures::SignatureVarGen

multisig

Affects jubjub-schnorr::multisig

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.

rkyv rkyv-impl?
bytecheck rkyv-impl?

Enables bytecheck ^0.6