# txgate-crypto
[](https://crates.io/crates/txgate-crypto)
[](https://docs.rs/txgate-crypto)
[](https://github.com/luisjpf/txgate#license)
Cryptographic operations for the [TxGate](https://crates.io/crates/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`](https://crates.io/crates/txgate) crate instead.
## What's Inside
### Key Management
- `Secp256k1Signer` - ECDSA signing for Ethereum and Bitcoin
- `Ed25519Signer` - 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 `Zeroize` and `ZeroizeOnDrop`
- 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](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.