Skip to content

Creating and Verifying Private Transaction Proofs

justanwar edited this page Oct 19, 2023 · 2 revisions

Creating Lelantus transaction proof

proveprivatetxown "txid" "message"

Use the proveprivatetxown command to create a proof that you spent coin for the private transaction. You will need to unlock the wallet first with the walletpassphrase "YOURPASSPHRASE" 30 command.

Example:

proveprivatetxown a366dc93c3c0c34c3afcbccdae0152d4fc57276f6451029729da65dfb17f6377 "This is Alice's transaction."

The output will be a signed message:

o22JMR4DQmD3zFUTVOQ00aQOTwXIhp6iZf3DCbjoQIAEx+Sw0+H1X4XFVWhtQGoUWkEf/VofhQZg6ul9Bv6AQg==

Verifying the signature

verifyprivatetxown "txid" "signature" "message"

You will need to use the same transaction ID and exact message that was used in creating the proof, e.g. "This is Alice's transaction." and not "This is Alices transaction"

Example:

verifyprivatetxown a366dc93c3c0c34c3afcbccdae0152d4fc57276f6451029729da65dfb17f6377 o22JMR4DQmD3zFUTVOQ00aQOTwXIhp6iZf3DCbjoQIAEx+Sw0+H1X4XFVWhtQGoUWkEf/VofhQZg6ul9Bv6AQg== "This is Alice's transaction."

Expected output if the proof matches:

true

Clone this wiki locally