Skip to main contentModule primitives
Source pub use error::PrimitivesError;
- aes
- Core AES block cipher implementation (FIPS 197).
- aes_cbc
- AES-CBC mode encryption and decryption with PKCS7 padding.
- aes_gcm
- AES-GCM authenticated encryption and decryption.
- base_point
- Base point (generator) operations with precomputed window tables.
- big_number
- Arbitrary-precision integer type for cryptographic operations.
- curve
- Elliptic curve parameters for secp256k1.
- drbg
- HMAC-DRBG deterministic random bit generator.
- ecdsa
- ECDSA signing and verification using secp256k1.
- error
- Error types for the primitives module.
- hash
- Cryptographic hash functions: SHA-256, SHA-512, RIPEMD-160, HMAC.
- key_shares
- Shamir’s Secret Sharing for private keys.
- mersenne
- Mersenne prime reduction for efficient modular arithmetic.
- point
- Affine point representation on the secp256k1 curve.
- polynomial
- Polynomial operations for threshold cryptography (Shamir’s Secret Sharing).
- private_key
- Private key type for secp256k1 ECDSA operations.
- public_key
- Public key type derived from a secp256k1 private key.
- random
- Cryptographically secure random byte generation.
- schnorr
- Schnorr Zero-Knowledge Proof (ZKP) protocol implementation.
- signature
- ECDSA signature type with DER encoding support.
- symmetric_key
- Symmetric encryption key for AES-GCM operations.
- transaction_signature
- Transaction signature type with sighash flag support.
- utils
- Utility functions shared across primitive modules.