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 default-features = false somewhere in the dependency tree.

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 (requires rsa)
  • Ed25519Signature2018 (requires ed25519)
  • Ed25519Signature2020 (requires ed25519)
  • EdDsa2022 (requires ed25519)
  • EcdsaSecp256k1Signature2019 (requires secp256k1)
  • EcdsaSecp256r1Signature2019 (requires secp256r1)
  • EthereumEip712Signature2021 (requires eip712)

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 (requires w3c)
  • EcdsaSecp256k1RecoverySignature2020 (requires dif)

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 (requires w3c)
  • EcdsaRdfc2019 (requires w3c)

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 (requires w3c)

ed25519 default

Enables ed25519 of ssi ^0.7.0

ssi:

Signature suites based on ED25519 (EdDSA).

This includes:

  • Ed25519Signature2018 (requires w3c)
  • Ed25519Signature2020 (requires w3c)
  • EdDsa2022 (requires w3c)

rsa default

Enables rsa of ssi ^0.7.0

ssi:

Signature suites based on RSA.

This includes:

  • RsaSignature2018 (requires w3c)

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 (requires ed25519)
  • P256BLAKE2BDigestSize20Base58CheckEncodedSignature2021 (requires secp256r1)

solana

Enables solana of ssi ^0.7.0

ssi:

Enables SolanaSignature2021

http-did

Enables http-did of ssi ^0.7.0

ssi:

Enable DID resolution tests using hyper and tokio.

ring

Enables ring of ssi ^0.7.0

ssi:

Use the Ring crate for crypto operations

DIDKit has 14 features without comments.