Cargo Features

[dependencies]
generic-ec = { version = "0.4.3", default-features = false, features = ["std", "alloc", "serde", "udigest", "curves", "curve-secp256k1", "curve-secp256r1", "curve-stark", "curve-ed25519", "all-curves", "hash-to-scalar"] }
default = serde, std

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

std default = alloc
alloc std

Enables alloc of optional curve25519-dalek and hex

curve25519-dalek:

We use this dependency when both curve-ed25519 and alloc features are enabled, to provide generic_ec::multiscalar::Dalek

Affects multiscalar::Dalek

serde default = hex, serde_with

Enables serde, serde of generic-ec-core

udigest hash-to-scalar?

Enables udigest

curves curve-ed25519? curve-secp256k1? curve-secp256r1? curve-stark? = generic-ec-curves
curve-secp256k1 all-curves? = curves

Enables secp256k1 of generic-ec-curves

curve-secp256r1 all-curves? = curves

Enables secp256r1 of generic-ec-curves

curve-stark all-curves? = curves

Enables stark of generic-ec-curves

curve-ed25519 all-curves? = curve25519, curves

Enables ed25519 of generic-ec-curves

Affects multiscalar::Dalek

all-curves = curve-ed25519, curve-secp256k1, curve-secp256r1, curve-stark
hash-to-scalar = udigest

Enables digest and rand_hash

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.

generic-ec-curves curve-ed25519? curve-secp256k1? curve-secp256r1? curve-stark? curves?
serde_with serde

Enables serde_with ^2

hex alloc? serde
curve25519 curve-ed25519?

Enables curve25519-dalek