Cargo Features
sui-crypto has no features set by default.
[dependencies]
sui-crypto = { version = "0.0.2", features = ["ed25519", "secp256r1", "passkey", "secp256k1", "zklogin", "pem"] }
- ed25519
-
Enables ed25519-dalek
ed25519 support
and rand_core ^0.6.4
RNG support
Affects
sui-crypto::ed25519
,sui-crypto::simple
,sui-crypto::multisig
… - secp256r1 passkey?
-
Enables p256 and rand_core ^0.6.4
p256:
secp256r1 support
Affects
sui-crypto::secp256r1
,sui-crypto::simple
,sui-crypto::multisig
… - passkey = secp256r1
-
Enables sha2
passkey verification support
Affects
sui-crypto::passkey
… - secp256k1
-
Enables std of signature and k256 and rand_core ^0.6.4
k256:
secp256k1 support
Affects
sui-crypto::secp256k1
,sui-crypto::simple
,sui-crypto::multisig
… - zklogin
-
Enables std of signature and ark-bn254 ^0.4.0, ark-ff ^0.4.2, ark-groth16 ^0.4.0, ark-snark ^0.4.0, ark-std ^0.4.0, base64ct, bnum, itertools ^0.13.0, serde, serde_derive, and serde_json
ark-bn254:
zklogin verification support
Affects
sui-crypto::zklogin
,sui-crypto::simple
,sui-crypto::multisig
… - pem
-
Enables pem and pkcs8 of optional ed25519-dalek, optional k256, and optional p256 and pem-rfc7468 and pkcs8
pkcs8:
pkcs8 der and pem support