Both implementations hold game funds on-chain, verify a SHA-256 commitment, recompute the winner, and restrict payout recipients. They are upgradeable: the upgrade authority must be trusted with contract behavior and escrowed funds. It is a multisig on both: a Squads v4 vault on Solana and a Safe on EVM. No single key can upgrade either contract.
The Oracle is a trusted operator. It knows secrets before settlement, approves creation and private entries, and can withhold a reveal. Public slot/block inputs do not make this scheme fair against a malicious Oracle or sequencer. Commitment uniqueness and token policy are enforced off-chain; there is no external VRF or permanent on-chain consumed-commitment registry.
Fees and recovery buffers are live settings within contract ceilings. Recovery depends on the underlying chain and token continuing to permit transfers. Local tests are not an independent security audit.
- Solana security model: program authority and its Squads custody, account closure, shared mint vaults, SPL Token restrictions, and migration assumptions.
- EVM security model: proxy authority and its Safe custody, signed authorizations, ERC-20 restrictions, retained storage, and upgrade compatibility.
Do not publish unrevealed secrets, credentials or exploit details in an issue. Report vulnerabilities privately through this repository's Security tab.