let deployer_address: [u8; 20] = hex::decode("d8dA6BF26964aF9D7eEd9e03E53415D37aA96045").unwrap().try_into().unwrap();
let contract_bytecode = b"your_contract_bytecode_here";
let wanted_prefix = 0xF; // Desired prefix for the address
match get_salt(wanted_prefix, deployer_address, contract_bytecode) {
Ok(salt) => println!("Generated Salt: {:?}", salt),
Err(e) => eprintln!("Error generating salt: {}", e),
}
-
Notifications
You must be signed in to change notification settings - Fork 0
schroyar/gera
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A lightweight library designed to generate precise salt values with the correct bits prefix for V4 hooks. Simplify your hook development with targeted, easy-to-integrate salt generation.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published