Cargo Features

ssi-crypto = { version = "0.1.1", default-features = false, features = ["secp256k1", "bbs", "ripemd-160", "keccak", "ring", "p256", "ed25519-dalek"] }
default = ripemd-160, secp256k1

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

secp256k1 default ripemd-160 = k256, keccak

Affects keccak::hash_public_key, keccak::hash_public_key_eip55

bbs = hkdf, pairing-plus, rand_old, serde, sha2_old

Enables bbs

Affects signatures::bbs

ripemd-160 default = bs58, ripemd160, secp256k1

Affects hashes::ripemd160

keccak secp256k1 = keccak-hash

Affects hashes::keccak


Enables ring ^0.16

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.

k256 secp256k1
p256 implicit feature
hkdf bbs?

Enables hkdf ^0.8

rand_old bbs?

Enables rand ^0.7

sha2_old bbs?

Enables sha2 ^0.8

keccak-hash keccak?

Enables keccak-hash ^0.7

ed25519-dalek implicit feature

Enables ed25519-dalek


Fast and efficient ed25519 EdDSA key generations, signing, and verification in pure Rust

ripemd160 ripemd-160

Enables ripemd160 ^0.9

pairing-plus bbs?
serde bbs?
bs58 ripemd-160

Enables bs58 ^0.4