View Repository
Build, test, and run the Anchor program and client.
On-chain Privacy
Understand the PER privacy model behind the hidden bid state.
What the example demonstrates
- Hidden bid state on a PER: each bid lives in a private, auction-sponsored PDA that only gains PER access at creation, so amounts and bidders stay hidden until settlement.
- Two-layer SPL escrow: the seller’s lot is parked in a base-layer auction ATA while bid collateral moves through a delegated auction-owned escrow on the ER.
- On-chain winner selection:
end_auctioncount-checks and scans exactly the accepted bid PDAs on the ER — no off-chain matching or reveal phase. - Cleanup-gated undelegation: the auction PDA can only undelegate after every bid account is
settled and closed, and the base-layer
finalizethen transfers the lot to the winner.
Recommended next steps
PER Quickstart
Set up a Private Ephemeral Rollup and its access control.
SPL Token Custody
Custody and move SPL tokens from your own program on the ER.
Access Control
Grant and revoke PER permissions on program accounts.
Prediction Markets & Trading
Compose custody, privacy, and settlement into a full protocol.

