Cargo Features

[dependencies]
vsss-rs = { version = "4.3.0", default-features = false, features = ["std", "alloc", "curve25519", "bls12_381_plus", "blstrs_plus", "k256", "p256", "p384", "p521", "ed448-goldilocks-plus"] }
default = std

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

std default

Enables std of rand, rand_core, and serde

rand:

Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.

Affects feldman::split_secret, feldman::split_secret_with_participant_generator, identifier::ShareIdentifier.to_vec, vsss-rs::combine_shares, vsss-rs::combine_shares_group, vsss-rs::StdVsss, vsss-rs::DefaultStdVsss, pedersen::StdPedersenResult, pedersen::split_secret, shamir::split_secret, shamir::split_secret_with_participant_generator, share::Share.value_vec, invalid::combine_invalid_vec, valid::combine_all

alloc

Enables alloc of rand, rand_core, and serde

rand:

Option: "alloc" enables support for Vec and Box when not using "std"

Affects feldman::split_secret, feldman::split_secret_with_participant_generator, identifier::ShareIdentifier.to_vec, vsss-rs::combine_shares, vsss-rs::combine_shares_group, vsss-rs::StdVsss, vsss-rs::DefaultStdVsss, pedersen::StdPedersenResult, pedersen::split_secret, shamir::split_secret, shamir::split_secret_with_participant_generator, share::Share.value_vec, invalid::combine_invalid_vec, valid::combine_all

curve25519 = curve25519-dalek, hex, serde, zeroize

Affects vsss-rs::curve25519, standard::curve25519_tests

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.

bls12_381_plus implicit feature
blstrs_plus implicit feature

Enables blstrs_plus

blstrs_plus:

High performance implementation of BLS12 381

curve25519-dalek curve25519?
k256 implicit feature
p256 implicit feature
p384 implicit feature
p521 implicit feature
ed448-goldilocks-plus implicit feature

Enables ed448-goldilocks-plus

ed448-goldilocks-plus:

A pure-Rust implementation of Ed448 and Curve448 and Decaf

hex curve25519?
serde alloc? curve25519? std
zeroize curve25519?