Commit Graph

22 Commits

Author SHA1 Message Date
conduition
1680dab1cf minor docs changes 2024-03-10 17:06:08 +00:00
conduition
91caefb989 add cooperative split closing transaction signing
This allows the market maker to cooperatively close individual payout
contracts with specific winners, if some of an outcome's winners
cooperate but others do not.
2024-03-10 16:47:49 +00:00
conduition
87ed72eae2 remove unused outcome sellback spend path 2024-03-10 16:38:05 +00:00
conduition
50ecb1be9d sellback TX sequence can be whatever the market maker wishes 2024-03-10 16:37:34 +00:00
conduition
a34146cbdd add cooperative outcome-close transaction signing for market maker 2024-03-10 16:36:52 +00:00
conduition
dbce9fc0d5 add OutcomeIndex alias for outcome indexes 2024-03-10 06:05:10 +00:00
conduition
296cfaae66 improve memory overhead by referring to players by index
We were using btrees indexed by players, which required each
btree to store the player in memory. This was inefficient.
Instead, we now index by usize, which is a player index in the
sorted set of players in ContractParameters.
2024-03-10 06:04:51 +00:00
conduition
8be1b23f7e add methods to sign and execute individual-controlled spending paths
These methods allow players and the market maker to execute the final
stages of a Ticketed DLC, including the forceful sellback TX, forceful
win transaction, and forceful reclaim transactions.
2024-03-09 17:46:27 +00:00
conduition
8d99ec6f6c perf: verify only signatures relevant to specific players
Each player only cares about the signatures which are needed
to enforce outcomes in which they receive money. Other outcomes
are entirely optional. The market maker must verify all signatures.
2024-03-09 02:10:23 +00:00
conduition
b8ad44c357 represent finished contract state as separate struct 2024-03-09 02:08:18 +00:00
conduition
882e6c4a95 add methods to construct fully signed outcome/split/expiry transactions 2024-03-08 07:15:17 +00:00
conduition
042754bfd8 add validation for contract parameters 2024-03-08 06:10:14 +00:00
conduition
423da8f486 fix misspelling of EventAnnouncement 2024-03-06 22:27:00 +00:00
conduition
482521a1e9 add second round of state machine for finalizing and verifying signatures
This adds additional states to the SigningSession state machine
which encapsulate the 2nd round of signing, and the final state
after signing is completed. Once all signatures have been received,
the Ticketed DLC is active and enforceable. Players can begin
buying ticket preimages from the market maker.
2024-03-06 00:17:43 +00:00
conduition
595c930b85 initial work on high-level state machine for musig signing
This is my first go at a higher level API which signers will
use to construct and sign the numerous transactions needed
for executing a Ticketed DLC. It revolves around the
SigningSession struct type, which has an API constrainted by
its current state.
2024-03-02 02:31:47 +00:00
conduition
ff25eb179d improve documentation 2024-02-19 19:15:40 +00:00
conduition
73c8db227d documentation improvements 2024-02-18 17:00:36 +00:00
conduition
bc606be476 refactor into multifile layout using functions 2024-02-16 03:52:16 +00:00
conduition
0fa8432641 separate oracles module 2024-02-15 23:08:52 +00:00
conduition
49baf6ad7b completed refactoring to different struct types 2024-02-15 21:37:05 +00:00
conduition
b30814a807 refactoring API to construct txs iteratively 2024-02-14 22:07:02 +00:00
conduition
179fa8c47e initial working code 2024-02-14 20:29:53 +00:00