Author: Rusty Russell 2017-05-04 04:39:50
Published on: 2017-05-04T04:39:50+00:00
Fabrice Drouin suggested adding a timestamp and expiry date to payment requests. Rusty Russell added these features, with the default expiry being one hour. The optional timestamp is encoded using 32 bits, while the variable length encoding is used for the expiry timestamp. These changes were reflected in the code that was pushed. The tagged parts of the data include the description of the payment, the fallback on-chain address, and extra routing information. The script `lightning-address.py` was updated to accept an expiry time in seconds as an argument. This Python script encodes payment requests and decodes Lightning Network invoices. The `--description` flag specifies what is being purchased, while the `amount` option indicates the amount of the transaction in millisatoshi.
Updated on: 2023-05-24T01:12:45.602345+00:00