Expand description
State bloat generation tool for generating large TIP20 storage state files.
Generates a binary file containing TIP20 storage slots (total_supply + balances) that can be loaded during genesis initialization to create a bloated state.
Structsยง
- Generate
State ๐Bloat - Generate state bloat file
Constantsยง
Functionsยง
- compute_
mapping_ ๐slot - Compute a Solidity mapping slot: keccak256(pad32(key) || pad32(base_slot))
- derive_
address_ ๐fast - Fast address derivation using keccak256(seed || index). This is much faster than BIP32 but the resulting addresses are NOT signable. Used for generating bloat addresses beyond the signable count.
- derive_
parent_ ๐key - Derive the parent key for BIP44 Ethereum path: m/44โ/60โ/0โ/0 This performs PBKDF2 once, then subsequent child derivations are fast.
- token_
address ๐ - Compute a reserved TIP20 token address from a token ID. Reserved addresses use the TIP20 prefix with the token ID in the last 8 bytes.
- write_
header ๐ - Write a block header to the output.
Format:
[magic:8][version:2][flags:2][address:20][pair_count:8] = 40 bytes