I know, I know, you’re probably tired of us making yet another announcement. Our researchers are proud to say they have figured it out and are now introducing programmable composable locks to shielded Zcash, which are (mostly)^ shielded and fully anonymous! HTLCs, witness locks, preimage locks, even encryption locks galore!
TL;DR: This breakthrough allows two parties to negotiate a provably secure lock such that the funds can only be spent on certain conditions, such as:
- Providing a certain witness
- Providing the preimage to a certain hash, essentially, requiring that you know the original text of a certain hash
- (Still in development) providing the decryption key to a certain piece of encrypted text
- A certain time or block height having being reached^
- Cannot spend once a certain height has been reached
Meanwhile, the funds can still be recovered from the lock by all parties’ collaboration.
This was built on the backs of FROST, so I guess we thank their developers. The core primitive is called Violet’s Constrained Locks, which takes an algorithm and a DKG to securely generate a lock by messaging off-chain.
In the process, we invented several types of new sub-protocols, such as:
- hashFROST
- preFROST
- (in-dev) encFROST
Conditions marked with ^ leak certain details to outside observers, that is: the existence of the lock, and when the lock is spent. These will disappear provided two things are done: One ZIP is clarified and another ZIP is passed. If you wish to see them being entirely shielded, support the inclusion of ZIP 68 and clarification of [protocol spec] [ZIP 203] Clarify how transaction lock times are handled · Issue #539 · zcash/zips · GitHub
Anyways, we will soon be releasing the vcl crate so you can all experiment with it, as well as machine checked proofs!
Preliminary paper: Violet's Constrained Locks, or: How I Learned to Stop Worrying and Love Scriptless Chains · 2026/0002
Example transactions:
| Example of | What it reveals | What it doesn’t reveal | Transaction link |
|---|---|---|---|
| Setting up a hash-lock, Poseidon hash | The existence of the lock as a 54-zat transparent output | Any shielded address or any involved shielded amounts | Zcash Transaction 7714868cd5...0e09d3 | ZecBlock |
| Claiming a hash-lock in reveal mode, Poseidon hash | Which lock was claimed, the preimage (only to the other party) | Same as above | Zcash Transaction 743299510c...68f036 | ZecBlock |
| Refunding a hash-lock, Poseidon hash | Same as above, no preimage is revealed | Same as above | Zcash Transaction 18f2490d69...942b2e | ZecBlock |
As always, if you support our work (or have ANY questions), please engage with this, and let us know!