Lelantus CLI - hadescoincom/hds-core GitHub Wiki
Conceptually, Lelantus is a mean which allows to avoid UXTO linkability in transactions graph. To make UTXOs unlinked user should insert regular HDS UTXO into shielded pool, converting these UTXOs into shielded UTXOs and then, after some time extract them back as unlinked UTXOs. Shielded UTXO belonging to the wallet could be detected by the node with owner key (as regular utxo), and user can use this info to extract these coins back.
With Lelantus we are able to without need to be online, this is also known as one-side payments. To make them we need to accomplish the following steps:
-
Receiver have to generate a token with needed quantity of vouchers (allowed number of payments)
./hds-wallet get_token --voucher_count=3
-
Send this token to the sender, and go offline
- Sender can use received token to make payments as many times as many vouchers this token has.
./hds_wallet insert_to_pool -r <token> -n <node address> -a <amount> -f <fee>
- Receiver after a while should check if he has shielded UTXOs
./hds_wallet info --shielded_utxos
- And then use this info for extracting UTXOs from pool
./hds_wallet extract_from_pool -a <amount> -f <fee> --shielded_id=<id from info>