Crates.io | stealth-gas-cli |
lib.rs | stealth-gas-cli |
version | |
source | src |
created_at | 2025-01-08 18:52:03.048101+00 |
updated_at | 2025-01-25 11:31:59.963742+00 |
description | CLI for managing Ethereum blind gas tickets on client side |
homepage | https://github.com/kassandraoftroy/eth-stealth-gas-tickets |
repository | https://github.com/kassandraoftroy/eth-stealth-gas-tickets |
max_upload_size | |
id | 1508947 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
a command line tool for client side operations with a Stealth Gas Station service. It wraps the eth-stealth-gas-tickets rust library for cryptographic operations.
cargo install stealth-gas-cli
(more soon)
step 1: generate 10 unsigned tickets and store them locally
stealth-gas new -n 10
step 2: call buyGasTickets onchain to take your 10 locally created unsigned tickets and buy them from the coordinator
stealth-gas buy -i ~/.stealthereum/unsigned_tickets_17000.json -k 0xYourPrivateKey
step 3: after buying gas tickets and waiting (~15 min must wait usually, but up to ~1 hour at worst) finalize your tickets
stealth-gas finalize --start-block 3048901 -i ~/.stealthereum/unsigned_tickets_17000.json
step 4: user can now send a SpendRequest to the coordinator server and redeem the 10 signed tickets (or any number of tickets depending on how many SignedTickets are in the input JSON file of finalized tickets)
stealth-gas redeem -s '[{"amount": "9900000000000000", "receiver": "0xYourAnonAddress"}]' -i ~/.stealthereum/finalized_tickets_17000.json
here we redeem 10 signed tickets worth 0.01 ETH in total. We send 0.0099 ETH to 0xYourAnonAddress. (Since there is leftover the coordinator will take it and transfer herself 0.0001 ETH assuming it's a tip)
Since 0xYourAnonAddress is anonymous, then redeemer retains privacy because no one knows which ticket was redeemed (not even the coordinator).
see stealth-gas help
and stealth-gas <command> --help
for more details on each command.