Expand description
§Lightning Module
This module allows to atomically and trustlessly (in the federated trust model) interact with the Lightning network through a Lightning gateway.
§Attention: only one operation per contract and round
If this module is active the consensus’ conflict filter must ensure that at most one operation (spend, funding) happens per contract per round
Re-exports§
pub use bitcoin;
pub use lightning_invoice;
Modules§
- config
- contracts
- federation_
endpoint_ constants - gateway_
endpoint_ constants - route_
hints - Hack to get a route hint that implements
serde
traits. - serde_
option_ routing_ fees - serde_
routing_ fees
Structs§
- Contract
Account - Contract
Output - Lightning
Common Init - Lightning
Gateway - Information a gateway registers with a federation
- Lightning
Gateway Announcement - Information about a gateway that is shared with other federation members and expires based on a TTL to allow for sharing between nodes with unsynchronized clocks which can each anchor the announcement to their local system time.
- Lightning
Gateway Registration - Information about a gateway that is stored locally and expires based on local system time
- Lightning
Input V0 - Lightning
Module Types - Pruned
Invoice - Data needed to pay an invoice
- Remove
Gateway Request - Request sent to the federation that requests the removal of a gateway
registration. Each peer is expected to check the
signatures
map for the signature that validates the gateway authorized the removal of this registration. - Unknown
Lightning Input Variant Error - Unknown
Lightning Output Outcome Variant Error - Unknown
Lightning Output Variant Error
Enums§
- Lightning
Consensus Item - Lightning
Input - Lightning
Input Error - Lightning
Output - Lightning
Output Error - Lightning
Output Outcome - Lightning
Output Outcome V0 - Lightning
Output V0 - Represents an output of the Lightning module.
Constants§
Functions§
- create_
gateway_ remove_ message - Creates a message to be signed by the Gateway’s private key for the purpose of removing the gateway’s registration record. Message is defined as: