š”ļøShielded Transaction
The shielded or private transactions in Labyrinth are performed by spending the user's notes in multiple JoinSplits while hiding all sensitive transaction details like the identity of the sender/receiver and values involved.
This is achieved by generating a zero-knowledge proof on the client side which proves that all the computations of the transaction were performed correctly. It proves that:
Spent notes' commitments are at some indices in the Merkle tree and it knows the same.
Spent notes' commitments are calculated correctly.
The signatures produced by a spent notes' owner's private key by signing the transaction are valid.
The revealed nullifiers of the spent notes are calculated correctly.
The commitments of the new notes are calculated correctly.
The total value remains conserved i.e. values of spent notes and newly created notes (adjusted with any external deposit/withdrawal value) are equal.
The generated proof is sent in the payload of the transaction, which is later verified by an on-chain verifier. States are modified e.g. commitments are inserted into tree and nullifiers are marked only if this verification succeeds, concluding the transaction.
Last updated