A bug bounty registry deployed as a single Compact contract on Midnight. Program funds sit in on-chain escrow, submissions and bonds are tracked by the ledger, and rewards settle directly to the researcher's wallet on claim. No custodian in the middle.
An owner calls createProgram with their scope, per-severity reward tiers, and a bond rate. tNight is transferred into the contract and held in escrow. A 2% funding fee goes to the platform treasury; the rest becomes the reward pool.
A researcher calls submitReport with a program id, severity, and a 32-byte report hash. They post a bond proportional to the tier reward. The submission lands on-chain in Pending and the report itself is shared with the owner off-chain.
The owner unlocks the submission into Review, locking the tier reward from the pool, then accepts or rejects. On accept, the researcher calls claimPayout and the contract releases their bond plus the full tier reward in a single transfer.
Pick a program, post a bond, submit a report hash. Once the owner accepts, claim your reward straight from the contract.
Deploy a program in one transaction. Funds sit in the registry contract; you keep full control of triage and acceptance.
Connect a Midnight wallet to fund a program or post a bond on a submission. All escrow, state transitions, and payouts settle through a single on-chain registry.