Cargo Features

ssi-jwk = { version = "0.1.2", default-features = false, features = ["secp256k1", "secp256r1", "secp384r1", "ed25519", "rsa", "aleo", "ripemd-160", "eip", "tezos", "ring"] }
default = ed25519, eip, ripemd-160, rsa, secp256k1, secp256r1

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

secp256k1 default eip ripemd-160 tezos? = k256, rand

enable secp256k1 keys

Enables secp256k1 of ssi-crypto

Affects ssi-jwk::secp256k1_parse, ssi-jwk::secp256k1_parse_private, ssi-jwk::serialize_secp256k1

secp256r1 default tezos? = p256, rand

enable secp256r1 (p256) keys

Affects ssi-jwk::p256_parse, ssi-jwk::serialize_p256

secp384r1 = p384, rand

enable secp384r1 (p384) keys

Affects ssi-jwk::p384_parse, ssi-jwk::serialize_p384

ed25519 default = ed25519-dalek, getrandom, rand

enable ed25519 (EdDSA) keys

Affects ssi-jwk::ed25519_parse

rsa default

enable RSA keys

Enables rsa ^0.6

aleo = blake2, bs58, rand, snarkvm-algorithms, snarkvm-curves, snarkvm-dpc, snarkvm-parameters, snarkvm-utilities

enable aleo ecosystem keys

Affects ssi-jwk::aleo

ripemd-160 default = secp256k1

enable ripemd-160 hashing for keys, e.g. for bitcoin

Enables ripemd-160 of ssi-crypto

Affects ssi-jwk::ripemd160

eip default = secp256k1

enable ethereum style key hashing

Enables keccak of ssi-crypto

Affects ssi-jwk::eip155

tezos = blake2b_simd, bs58, secp256k1, secp256r1

enable tezos style key hashing

Affects ssi-jwk::blakesig


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 secp256r1
p384 secp384r1?
rand aleo? ed25519 secp256k1 secp256r1 secp384r1?
ed25519-dalek ed25519
bs58 aleo? tezos?

Enables bs58 ^0.4

blake2 aleo?

Enables blake2 ^0.9

snarkvm-dpc aleo?

Enables snarkvm-dpc ^0.7.9

snarkvm-algorithms aleo?

Enables snarkvm-algorithms ^0.7.9

snarkvm-curves aleo?

Enables snarkvm-curves ^0.7.9

snarkvm-utilities aleo?

Enables snarkvm-utilities ^0.7.9

snarkvm-parameters aleo?

Enables snarkvm-parameters ^0.7.9

blake2b_simd tezos?

Enables blake2b_simd ^0.5

getrandom wasm32 not wasm32 ed25519