Cargo Features

[dependencies]
did-method-key = { version = "0.3.1", default-features = false, features = ["secp256k1", "secp256r1", "secp384r1", "bbs"] }
default = secp256k1, secp256r1

These default features are set whenever did-method-key is added without default-features = false somewhere in the dependency tree.

secp256k1 default = k256

Enables secp256k1 of ssi-jwk

ssi-jwk:

Enable secp256k1 keys.

secp256r1 default = p256

Enables secp256r1 of ssi-jwk

ssi-jwk:

Enable secp256r1 (p256) keys.

secp384r1

Enables secp384r1 of ssi-jwk

ssi-jwk:

Enable secp384r1 (p384) keys.

bbs

Enables bbs of ssi-jwk

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