Expand description
Crate documentation is TODO.
See the Github README.
Re-exports§
Modules§
- This module contains utilities for constructing LN-compatible preimages and SHA256 hashes.
Structs§
- Represents the parameters which all players and the market maker must agree on to construct a ticketed DLC.
- A set of signatures produced by running a cooperative
SigningSession
on aTicketedDLC
. These are only the signatures needed for enforcing outcomes which multiple members of the group must agree on. - A
SigningSessionState
state for the second signature-sharing round of communication used by individual signing contributors. Usually this would be used by a player. - A
SigningSessionState
state for the second signature-sharing round of communication used by the signing coordinator (usually this would be the market maker). - An oracle’s announcement of a future event.
- The agent who provides the on-chain capital to facilitate the ticketed DLC. Could be one of the players in the DLC, or could be a neutral 3rd party who wishes to profit by leveraging their capital.
- A
SigningSessionState
state for the initial nonce-sharing round of communication. - A player in a ticketed DLC. Each player is identified by a public key, but also by their ticket hash. If a player can learn the preimage of their ticket hash (usually by purchasing it via Lightning), they can claim winnings from DLC outcomes.
- Represents a mapping of different signature requirements to some arbitrary type T. This can be used to efficiently look up signatures, nonces, etc, for each outcome transaction, and for different
WinCondition
s within each split transaction. - Represents a fully signed and enforceable
TicketedDLC
, created by running aSigningSession
. - This is a state machine to manage signing the various transactions in a
TicketedDLC
. The generic parameterS
determines which of the two stages of the signing session we are in. - Represents the combined output of building all transactions and precomputing all necessary data for a ticketed DLC.
- Points to a situation where a player wins a payout from the DLC.
Enums§
- Represents one possible outcome branch of the DLC. This includes both outcomes attested-to by the Oracle, and expiry.
Traits§
- A marker trait used to constrain the API of
SigningSession
.
Type Aliases§
- A type alias for clarity. DLC outcomes are sometimes referred to by their index in the set of possible outcome messages.
- Represents a mapping of player to payout weight for a given outcome.
- A type alias for clarity. Players in the DLC are often referred to by their index in the sorted set of players.