Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

Rocket Pool State Proof Generator

This is a naive implementation of a proof generator for use with the Rocket Pool protocol.

It is intended for use in debugging and testing against other more production-ready implementations.

Usage

Install dependencies:

 bun install

Then run the help command for a list of available commands:

 bun src/index.js --help

Outputs:

______ _ _ ______ _ | ___ \ | | | | | ___ \ | | | |_/ /___ ___| | _____| |_ | |_/ /__ ___ | |
| // _ \ / _ | |/ / _ \ __| | __/ _ \ / _ \| |
| |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | |
\_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_|
Usage: rp-stateproof [options] [command]
debugging tool to generate state proofs required for Rocket Pool
Options:
-V, --version output the version number
--rpc beacon chain API endpoint (defaults to BEACON_CHAIN_API env variable)
-h, --help display help for command
Commands:
validator_pubkey [options] <validator_index> generate a state proof for a validator pubkey/withdrawal_credentials
validator [options] <validator_index> generate a state proof for a validator
slot [options] generate a state proof for the slot number
withdrawable_epoch [options] <validator_index> generate a state proof for the withdrawable_epoch of a validator
participation <proof_slot> <participation_slot> <validator_index> generate a state proof for the previous_epoch_participation of a validator
historical_participation <proof_slot> <participation_slot> <validator_index> generate a state proof for previous_epoch_participation using historical_summaries
withdrawal <proof_slot> <withdrawal_slot> <withdrawal_number> generate a state proof for a withdrawal
historical_withdrawal <proof_slot> <withdrawal_slot> <withdrawal_number> generate a state proof for a withdrawal (using historical block root)
help [command] 

About

Debugging tool to generate state proofs required for Rocket Pool

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages