alloy-signer-local

Crates.ioalloy-signer-local
lib.rsalloy-signer-local
version1.5.2
created_at2024-06-13 08:58:37.65605+00
updated_at2026-01-22 15:46:15.55618+00
descriptionsepc256k1 ECDSA and YubiHSM signer implementations
homepagehttps://github.com/alloy-rs/alloy
repositoryhttps://github.com/alloy-rs/alloy
max_upload_size
id1270377
size179,846
(DaniPopes)

documentation

README

alloy-signer-local

Local signer implementations:

Features

  • keystore: enables Ethereum keystore functionality on the PrivateKeySigner and Secp256k1Signer types.
  • mnemonic: enables BIP-39 mnemonic functionality for building PrivateKeySigners.
  • secp256k1: enables the Secp256k1Signer type, an alternative signer implementation using the secp256k1 crate instead of k256.
  • yubihsm: enables LocalSigners with YubiHSM2 support.

Secp256k1 vs K256

This crate provides two ECDSA implementations:

  • PrivateKeySigner (default): Uses the k256 crate, a pure Rust implementation.
  • Secp256k1Signer (feature-gated): Uses the secp256k1 crate, Rust bindings to libsecp256k1.

Both implementations produce identical signatures and addresses for the same private key. The secp256k1 crate may offer better performance in some scenarios due to its optimized C implementation.

Commit count: 2552

cargo fmt