7 releases
new 0.3.0 | Jan 6, 2025 |
---|---|
0.2.3 | Jan 5, 2025 |
0.1.1 | Jan 1, 2025 |
#13 in Magic Beans
232 downloads per month
16KB
278 lines
eth-stealth-gas-tickets
rust library implementing blind RSA signatures for gas tickets on ethereum to enable private gas sponsorship.
private gas sponsorship is a tool that supports robust and user-friendly stealth addresses on ethereum. see related eth-stealth-addresses lib here
let's make privacy on evm chains a reality!
NOT AUDITED - HOMEROLLED CRYPTO - USE AT YOUR OWN RISK
Usage
Add this library to your rust project with:
cargo add eth-stealth-gas-tickets
Use it:
use eth_stealth_gas_tickets::CoordinatorPubKey;
use rand::Rng;
fn main() {
let pk_hex = "0xCoordinatorPubKeyFetchedFromChain";
let pk = CoordinatorPubKey::from_hex_string(pk_hex).unwrap();
let mut rng = rand::thread_rng();
let blind_tickets = pk.new_blind_tickets(&mut rng, 5);
println!("blind tickets: {:?}", blind_tickets);
}
cli is forthcoming!
Test
cargo test
to test the core functionality of library
Dependencies
~19MB
~413K SLoC