* shard_1 = k ^ r
* shard_2 = r
shard_1 xor shard_2 = k ^ r ^ r = k
accept-amp=1
in your lnd.conf
file before starting your upgraded node.lncli sendpayment --amt <amount> --dest <recipient’s public key> --amp
--amp
to the lncli addinvoice
command.lncli sendpayment
command.--pay_addr
flag. From lnd 0.14.0
onwards it is no longer necessary to set the --amp-reuse
flag to generate a payment address in LND.lncli addinvoice --amt <amount in satoshis> --memo=’my first amp’ --amp
lncli payinvoice --pay_req <the amp invoice created by the receiver>
lncli sendpayment --amt <amount in satoshis> --dest <public key of receiver> --amp
lncli payinvoice --pay_req <the amp invoice created by the receiver> --pay_addr <the sha256 hash of a random number>
lncli payinvoice --pay_req <the amp invoice created by the receiver> --amp-reuse
lnd 0.13
or above with accept-amp=1
enabled in your configuration file.lncli addinvoice --amp
Optionally we can add a (publicly visible) memo or a fixed amount with the --memo="add your memo here"
and --amt <amount in satoshis>
flags.r_hash
, a payment request
and a payment address
. There are many ways you can use to transform your payment request into a QR code, embed it on your website or add it to your social media. LibreOffice has a built-in functionality, and there are plenty of freely available online tools.lncli payinvoice <amp invoice>
If the AMP invoice does not contain an amount, you can specify the amount you would like to pay with the --amt
flag.--key_send
flag with a --amp
flag. You will no longer have to manually generate a preimage as the sender.lncli sendpayment --dest <destination public key> --amt <amount> --keysend
lncli sendpayment --dest <destination public key> --amt <amount> --amp