-
Notifications
You must be signed in to change notification settings - Fork 206
Lelantus CLI
Starting from v6.0
- CLI
get_address --offline
switch is renamed to--offline_count
- default address generated by the UI is an offline address that includes 1 offline voucher (enables 1 offline payment). This address is equivalent to the
get_address --offline_count 1
in CLI - all
offline
addresses by default trigger an online regular transaction if used in CLIsend
without the--offline
switch - to make an offline payment via the
send
command with theoffline
address the--offline
switch should be added
Text below includes the changes described in this section. For CLI instructions before v6.0 refer the Lelantus CLI Historical page.
Conceptually, Lelantus is a mean which allows to avoid UXTO linkability in transactions graph. To make UTXOs unlinked user should insert regular BEAM 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 the user can use this info to extract these coins back. We are trying to hide the details of this process from the user, extracting from the shielded pool is performed automatically when user sends beams, it influences the fee, but the user shouldn't think about unlinking.
To send BEAMs through Lelantus we introduced three types of addresses:
- offline
- max privacy
- public offline
All of these addresses could be used with send
command and should be passed via -r
parameter
It allows sending BEAMs without interactions with the receiver. It is a very long base58 string, which contains embedded information for 10 payments(in UI), also it has SBBS address of the receiver, so, in the case when the receiver becomes online, the sender could get info for more payments.
To generate this type of address with 10 embedded payments use
./beam-wallet get_address --offline_count=10
This address allows to make only one payment, there is no ability to get more payments, and there is a guaranty that shielded coins received by sending to this address will be extracted in the correct moment to achieve the max privacy effect. To generate a new max privacy address use
./beam-wallet get_address --max_privacy
This type of address is intended to be used to receive donations. It is permanent, relatively short, and provides less privacy comparing with others, the sender has an ability to detect if the sent shielded coin has been spent. This type of address could be obtained with the following command:
./beam-wallet get_address --public_offline
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 the needed quantity of vouchers (allowed number of payments)
./beam-wallet get_address --offline_count=3
-
Send this token to the sender, and go offline
-
Sender can use the received token with the
--offline
switch to make payments as many times as many vouchers this token has. If the--ofline
switch is not specified, regular online transaction would be executed./beam_wallet send -r <token> --offline -n <node address> -a <amount> -f <fee>
-
Receiver after a while should check if he has shielded UTXOs
./beam_wallet info
the shielded coins has type
shld
| ID | BEAM | GROTH | Maturity | Status | Type | 14724 34 0 95849 [Spent] shld 14725 7 0 95873 [Spent] shld
-
Also a new transaction record should appear with status
received max privacy
,received offline
orreceived public offline
, depending od what address type was used./beam_wallet info --tx_history
2020.11.14 12:52:22 incoming 5 received offline c714875164c8444cb12f90c4353fa1f6 2020.10.30 18:13:22 incoming 1 received max privacy 7a6dbf11fa6649e39992c41c349ab6ad 2020.10.30 17:57:22 incoming 4 received max privacy d5f1b5acee474b4cb187321431040306 2020.10.30 11:15:22 incoming 2 received public offline