Cargo Features
cita-crypto has no features set by default.
[dependencies]
cita-crypto = { version = "0.1.0", features = ["secp256k1", "ed25519", "sm2"] }
- secp256k1 = cita-secp256k1
-
Enables sha3hash of cita-secp256k1
Affects
cita-crypto::SIGNATURE_NAME
… - ed25519 = cita-ed25519
-
Enables blake2bhash of cita-ed25519
Affects
cita-crypto::SIGNATURE_NAME
… - sm2 = cita-sm2
-
Enables sm3hash of cita-sm2 ^0.1
Affects
cita-crypto::SIGNATURE_NAME
…
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.
- cita-ed25519 ed25519?
- cita-secp256k1 secp256k1?
- cita-sm2 sm2?
-
Enables cita-sm2 ^0.1