Giter VIP home page Giter VIP logo

ecdsa-dump-ethereum's Introduction

ecdsa-dump-ethereum

Python 3.7+ License: GPL v3

Dump ECDSA signatures, original message, etc. of all transactions on the Ethereum blockchain.

Requirements

As per Nodes and Clients, since "The Merge", to obtain a fully synced node, both an execution client, such as geth, and a consensus client, such as lighthouse is required.

As of October 2022, the full chain (full node, not archive node) requires about 1.6 TB of storage. Doing a full sync from scratch to block 15'800'000 will take about 3 weeks.

Running the Ethereum node

To start geth:

geth --syncmode full --http

To start lighthouse:

lighthouse bn --execution-endpoint http://localhost:8551 --execution-jwt ~/.ethereum/geth/jwtsecret --http --checkpoint-sync-url https://mainnet.checkpoint.sigp.io

Usage

To dump the signatures and messages from block 0 to 70000 as CSV, run:

poetry install
poetry run python main.py -o output_file.csv --end-block 70000

The output file will contain on each line:

source_address;r;s;pubkey;txid;message_hash;block_time

For more options and help:

$ poetry run python main.py -h                
usage: ecdsa-dump-ethereum [-h] [--start-block START_BLOCK] [--end-block END_BLOCK] [--host HOST] --output OUTPUT_PATH

Dump ECDSA signatures, original message, etc. of all transactions on the Ethereum blockchain.

options:
  -h, --help            show this help message and exit
  --start-block START_BLOCK, -s START_BLOCK
                        Number of the block to start dumping from
  --end-block END_BLOCK, -e END_BLOCK
                        Number of the block to stop dumping from (included)
  --host HOST           The Ethereum node JSON RPC service to connect to. Defaults to http://localhost:8545 .
  --output OUTPUT_PATH, -o OUTPUT_PATH
                        Path to the output file to dump to

License and Copyright

Copyright(c) 2023 Nagravision SA.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

ecdsa-dump-ethereum's People

Contributors

amietn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.