Skip to main content

Crate signer_evm

Crate signer_evm 

Source
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)

MethodStandard
sign_hash_sync / sign_hashRaw 32-byte hash
sign_message_sync / sign_messageEIP-191 personal_sign
sign_typed_data_sync / sign_typed_dataEIP-712
sign_transaction_sync / sign_transactionAll EVM tx types
addressSigner’s Ethereum address
chain_id / set_chain_idEIP-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§

AlloySigner
Asynchronous Ethereum signer.
SignerSync
Synchronous Ethereum signer.
TxSigner
Asynchronous transaction signer, capable of signing any SignableTransaction for the given Signature type.
TxSignerSync
Synchronous transaction signer, capable of signing any SignableTransaction for the given Signature type.

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.