Skip to content

Lelantus transaction proof of ownership

justanwar edited this page Nov 28, 2023 · 1 revision

The prover selects the transaction with a Lelantus spend that they want to generate a proof for, and a certain message.

The verifier receives the signature and message and uses it to verify. Both signature and message must be sent as the transaction cannot be verified with only the signature.

Proving a Lelantus spend transaction is yours

proveprivatetxown "txid" "message"

The wallet must be unlocked before signing. To unlock the wallet for 60 seconds, walletpassphrase "Your Password" 60.

Example:

proveprivatetxown 4404fd0b73e16bd0140d493b8553bb2ba20eb0e61c614b9b085601a3f4000912 "Lelantus Spark is great!"

Output:

RdUvy4+ZcQbGw08tqarTSiOkW9GraLheLjv1EDue1dMuA+LTuuRiC8GhuWe7XZraS0f8J72f1qY/RA4wcsEogw==

Verifying a Lelantus spend transaction

verifyprivatetxown "txid" "signature" "message"

The message must match, otherwise the verification will fail.

Example:

verifyprivatetxown "4404fd0b73e16bd0140d493b8553bb2ba20eb0e61c614b9b085601a3f4000912" "RdUvy4+ZcQbGw08tqarTSiOkW9GraLheLjv1EDue1dMuA+LTuuRiC8GhuWe7XZraS0f8J72f1qY/RA4wcsEogw==" "Lelantus Spark is great!"

Output:

true
Clone this wiki locally