About
## Wave 1 submission
Built the CloakDeal privacy-preserving transaction flow using Compact and connected it to a Next.js frontend with Lace and Midnight.js.
Key updates include:
- Designed and implemented the CloakDeal Compact smart contract with private witnesses and public ledger state.
- Added verification circuits for the buyer and seller, a canSettle check, and a settlement circuit.
- Added protection against invalid settlement states such as settling before both sides are verified or settling a deal more than once.
- Built a full dashboard for deals, requirements, proofs, verification status, and activity.
- Integrated the Lace wallet through the Midnight DApp Connector.
- Added a local Compact Runtime environment for contract testing.
- Added Midnight.js 4.0.4 integration for real network interaction.
- Deployed CloakDeal to Midnight Preprod and connected the frontend to the deployed contract.
- Added real contract state reads through the Midnight Preprod indexer instead of relying on mock data in testnet mode.
- Added real private transaction flows for verifyBuyer, verifySeller, canSettle, and settle.
- Added separate local and testnet environments so testing can be performed locally without compromising the real network flow.
- Achieved 42/42 passing Midnight tests, successful TypeScript checks, and a successful production build.
The main result is a working privacy-preserving deal flow where the conditions of a transaction can be verified without exposing the underlying private information.
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





