Expand description
EVM transaction signer built on [alloy-signer-local].
Signer wraps a PrivateKeySigner with Deref
for full alloy API access. The inner key is ZeroizeOnDrop.
Zero hand-rolled cryptography.
§Signing methods (via Deref to PrivateKeySigner)
| Method | Standard |
|---|---|
sign_hash_sync / sign_hash | Raw 32-byte hash |
sign_message_sync / sign_message | EIP-191 personal_sign |
sign_typed_data_sync / sign_typed_data | EIP-712 |
sign_transaction_sync / sign_transaction | All EVM tx types |
address | Signer’s Ethereum address |
chain_id / set_chain_id | EIP-155 chain ID |
Re-exports§
pub use alloy_consensus;pub use alloy_network;pub use alloy_primitives;pub use alloy_signer;pub use alloy_signer_local;
Structs§
- Address
- An Ethereum address, 20 bytes in length.
- Signature
- An Ethereum ECDSA signature.
- Signer
- EVM transaction signer.
Enums§
- Error
- Errors that can occur during EVM signing operations.
Traits§
- Alloy
Signer - Asynchronous Ethereum signer.
- Signer
Sync - Synchronous Ethereum signer.
- TxSigner
- Asynchronous transaction signer, capable of signing any
SignableTransactionfor the givenSignaturetype. - TxSigner
Sync - Synchronous transaction signer, capable of signing any
SignableTransactionfor the givenSignaturetype.
Type Aliases§
- B256
- 32-byte fixed byte-array type.
- ChainId
- Chain identifier type (introduced in EIP-155).
- U256
- 256-bit unsigned integer type, consisting of 4, 64-bit limbs.