Skip to content

Instantly share code, notes, and snippets.

@kernoelpanic
kernoelpanic / eth_ecrecover_tx.py
Created July 3, 2024 15:29
Python script for recovering the secp256k1 public key from an ethereum (mainnet) transaction hash.
#!/usr/bin/python
#
# Command line script that recovers the secp256k1 public key
# from an ethereum transaction hash.
# Requires a HTTP URL of an ethereum node (geth) to connect to
# to fetch the transaction information.
#
# Other requirements are:
# $ cat requirements.txt
# cryptography