txgate-crypto
Cryptographic operations for the TxGate transaction signing service.
Warning
This is an internal crate with an unstable API.
This crate is published to crates.io only as a dependency of the txgate binary. The API may change without notice between versions.
Do not depend on this crate directly. Use the txgate crate instead.
What's Inside
Key Management
Secp256k1Signer- ECDSA signing for Ethereum and BitcoinEd25519Signer- EdDSA signing for Solana- Secure key generation with proper entropy
Address Derivation
- Ethereum addresses (EIP-55 checksummed)
- Bitcoin P2WPKH addresses (bech32)
- Solana addresses (base58-encoded ed25519 public keys)
Security Features
- All secret types implement
ZeroizeandZeroizeOnDrop - Constant-time signature verification
- Argon2id key derivation for encrypted storage
- ChaCha20-Poly1305 authenticated encryption
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.