Combined Layers
For convenience, useCryptoLive (production) or CryptoTest (testing) to provide the non-native crypto services at once. For native HDWallet support, use CryptoLiveNative from voltaire-effect/native.
CryptoLive
Production layer with all cryptographic services:- Keccak256, SHA256, Blake2, RIPEMD-160 (hashing)
- Secp256k1, Ed25519, P256, BLS12-381 (signatures)
- ChaCha20-Poly1305 (encryption)
- HDWallet, BIP-39, Keystore (key derivation)
- BN254, KZG (zero-knowledge)
- HMAC, EIP-712 (utilities)
CryptoTest
Mock layer for unit testing. Returns deterministic values without cryptographic overhead:Individual Services
Import only what you need for smaller bundles:Service Categories
Hashing
| Service | Description |
|---|---|
| Keccak256 | Ethereum’s primary hash (SHA3-256 variant) |
| SHA256 | Standard SHA-256 |
| Blake2 | Blake2b and Blake2s |
| RIPEMD-160 | For Bitcoin-style addresses |
Signatures
Encryption
| Service | Description |
|---|---|
| AES-GCM | Symmetric encryption |
| ChaCha20-Poly1305 | Modern symmetric encryption |
| X25519 | Key exchange (ECDH) |
Key Derivation
Zero Knowledge
Utilities
Layer Composition
Compose individual layers as needed:Testing Pattern
Use*Test layers for unit tests:
See Also
- Voltaire Crypto — Core crypto documentation
- Testing — Testing patterns with mock layers
- Signer Service — Transaction signing using crypto
- HD Wallet Guide — BIP-39 mnemonic integration

