txgate-crypto 0.3.2

Cryptographic operations for TxGate - key management, signing, and verification
Documentation

txgate-crypto

Crates.io Documentation License

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 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:

at your option.