Skip to content

feat: add seed-based account generation and snapshot recovery#43

Merged
keanji-x merged 1 commit intomainfrom
add_random_seed
Mar 3, 2026
Merged

feat: add seed-based account generation and snapshot recovery#43
keanji-x merged 1 commit intomainfrom
add_random_seed

Conversation

@keanji-x
Copy link
Copy Markdown
Collaborator

@keanji-x keanji-x commented Mar 3, 2026

  • Replace deterministic index-based private key generation with seed+index hashing via keccak256 to prevent account discovery
  • Fix faucet start_nonce bug: use on-chain nonce instead of hardcoded token count, which caused Level 0 to be silently skipped
  • Replace seed.txt with snapshot.json containing both seed and faucet_start_nonce for correct recovery behavior
  • In recover mode, use saved start_nonce so the nonce skip logic correctly identifies already-completed faucet levels
  • Update unit tests to use fixed seed for determinism

- Replace deterministic index-based private key generation with
  seed+index hashing via keccak256 to prevent account discovery
- Fix faucet start_nonce bug: use on-chain nonce instead of
  hardcoded token count, which caused Level 0 to be silently skipped
- Replace seed.txt with snapshot.json containing both seed and
  faucet_start_nonce for correct recovery behavior
- In recover mode, use saved start_nonce so the nonce skip logic
  correctly identifies already-completed faucet levels
- Update unit tests to use fixed seed for determinism
@keanji-x keanji-x merged commit 92ee2e4 into main Mar 3, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant