Rust theorytheory 0/50 · 0%
Blockchain · hard

42. Cryptography Crates

Hashes, signatures and constant time.

sha2, keccak, ed25519-dalek and k256 cover the primitives used on-chain. Prefer audited crates over hand-rolled maths, use constant-time comparison via the subtle crate, and zeroize secret material after use.

Check your understanding

  1. 1. Which curve library suits Ethereum secp256k1?

  2. 2. Comparing secrets should be…