Developer Builds ZK Invoice Contract and USDM Bridge Across Cardano and Midnight
A developer completed a full USDM token round-trip between the Cardano and Midnight blockchains, building a web front-end for the bridge and deploying a zero-knowledge invoice settlement contract on Midnight's Preview network. The bridge uses VIA's lock-release mechanism to lock USDM on Cardano and mint native tokens on Midnight, with ZK proofs generated locally via a proof server to handle the return leg. The developer documented several undisclosed technical pitfalls, including DUST balance reporting returning undefined while funds were actually accruing, requiring a timestamp-based query to retrieve the correct balance. The private invoice contract stores only a hash of invoice details on-chain, allowing either party to prove settlement in zero knowledge without revealing the payment amount or payer identity. Both the bridge front-end and the payments DApp have been open-sourced and deployed as live demos on GitHub Pages.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in