The code
- Six digits, 000000 to 999999: a million codes.
- Before a vault takes a single try, the keeper writes its lock memo on Solana:
safe lock <n> sha256("safe|<n>|<code>|<salt>")
- The salt is 16 random bytes, so nobody can find the code by hashing all million of them.
- Vaults 1 and 2 are locked before launch; when vault n opens, vault n+2 is locked. The next vault is always locked already.