eth-signer
A Python library for transection signing using AWS Key Management Service.
Dependencies
- Python 3.5+
QuickStart
This Package is available on PyPI. Install via pip as:
pip install eth-signer
Usage
- Instantiate eth signer client
import boto3
from eth_signer import AWSKMSKey
from web3 import Web3
kms_client = boto3.client('kms', 'us-east-1')
key_id = "XX0000XX-00XX-00XX-00XX-XXXX0000XXXX"
kms_signer = AWSKMSKey(kms_client, key_id)
web3 = Web3(Web3.HTTPProvider(node_url))
contract = web3.eth.contract(address=address, abi=abi)
tx_obj = contract.functions.function_name().buildTransaction(
{
"nonce": nonce,
"from": address,
}
)
signed_tx = AWSKMSKey.sign_transaction(tx_obj)
tx_hash = signed_tx.hash
web3.eth.send_raw_transaction(signed_tx.rawTransaction)
Features
- Support for EIP-2718 (Typed Transaction) and EIP-2939 (Access List Transaction)
- Support for EIP-1559 (Dynamic Fee Transaction)
Metadata
Release files for eth-signer 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| eth-signer-0.1.1.tar.gz | 6.5 kB | Without provenance | Details |
Release files / eth-signer-0.1.1.tar.gz
| Download URL | eth-signer-0.1.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37490d30d98e33f5503113e658138bcc01e186c82f6643d257479edfed331c9a
|
|
BLAKE2b-256 checksum How to use checksums |
afc7b904603c000a7901e6f3b36fe61dbec16a3aec775556b0479d78513a65b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
|
Security for eth-signer 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.