SkillAgentSearch skills...

Gera

A lightweight lib to generate salt values with the correct bits prefix for V4 hooks.

Install / Use

/learn @schroyar/Gera
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Uniswap V4 Hooks Salt Generator (gera)

license

Basic usage

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),
}
View on GitHub
GitHub Stars4
CategoryDevelopment
Updated3mo ago
Forks0

Languages

Rust

Security Score

67/100

Audited on Dec 30, 2025

No findings