Cargo Features
[dependencies]
didkit = { version = "0.6.0", default-features = false, features = ["w3c", "secp256k1", "secp256r1", "secp384r1", "ed25519", "rsa", "ripemd-160", "aleo", "eip", "tezos", "solana", "http-did", "ring"] }
- default = ed25519, eip, ripemd-160, rsa, tezos, w3c
-
These default features are set whenever
didkit
is added without
somewhere in the dependency tree.default-features = false - w3c default = secp256k1, secp256r1
-
Enables w3c of ssi ^0.7.0
ssi:
Signature suites specified by the W3C.
This will enable the following Data-Integrity suites:
JsonWebSignature2020
RsaSignature2018
(requiresrsa
)Ed25519Signature2018
(requiresed25519
)Ed25519Signature2020
(requiresed25519
)EdDsa2022
(requiresed25519
)EcdsaSecp256k1Signature2019
(requiressecp256k1
)EcdsaSecp256r1Signature2019
(requiressecp256r1
)EthereumEip712Signature2021
(requireseip712
)
- secp256k1 w3c
-
Enables secp256k1 of did-method-key ^0.2.0 and ssi ^0.7.0
ssi:
Signature suites based on secp256k1.
This includes:
EcdsaSecp256k1Signature2019
(requiresw3c
)EcdsaSecp256k1RecoverySignature2020
(requiresdif
)
- secp256r1 w3c
-
Enables secp256r1 of did-method-key ^0.2.0 and ssi ^0.7.0
ssi:
Signature suites based on secp256r1.
This includes:
EcdsaSecp256r1Signature2019
(requiresw3c
)EcdsaRdfc2019
(requiresw3c
)
- secp384r1
-
Enables secp384r1 of did-method-key ^0.2.0 and ssi ^0.7.0
ssi:
Enable secp384r1 keys and signature suites based on secp384r1.
This includes:
EcdsaRdfc2019
(requiresw3c
)
- ed25519 default
-
Enables ed25519 of ssi ^0.7.0
ssi:
Signature suites based on ED25519 (EdDSA).
This includes:
Ed25519Signature2018
(requiresw3c
)Ed25519Signature2020
(requiresw3c
)EdDsa2022
(requiresw3c
)
- rsa default
-
Enables rsa of ssi ^0.7.0
ssi:
Signature suites based on RSA.
This includes:
RsaSignature2018
(requiresw3c
)
- ripemd-160 default
-
Enables ripemd-160 of ssi ^0.7.0
ssi:
Enable ripemd hashes.
- aleo
-
Enables aleo of ssi ^0.7.0
ssi:
Enables
AleoSignature2021
. - eip default
-
Enables eip of ssi ^0.7.0
- tezos default
-
Enables tezos of ssi ^0.7.0
ssi:
Tezos signatures suites.
This includes:
TezosJcsSignature2021
TezosSignature2021
Ed25519BLAKE2BDigestSize20Base58CheckEncodedSignature2021
(requiresed25519
)P256BLAKE2BDigestSize20Base58CheckEncodedSignature2021
(requiressecp256r1
)
- solana
-
Enables solana of ssi ^0.7.0
ssi:
Enables
SolanaSignature2021
- http-did
-
Enables http-did of ssi ^0.7.0
ssi:
- ring
-
Enables ring of ssi ^0.7.0
ssi:
Use the Ring crate for crypto operations
DIDKit has 14 features without comments.