Commit Graph

13 Commits

Author SHA1 Message Date
Thibaut Le Guilly
08c781021b Move oracle related TLV info to Messaging.md (#162) 2021-04-20 15:52:54 +09:00
benthecarman
c8e8071561 Define input & output ordering (#136) 2021-02-24 00:36:29 -06:00
Nadav Kohen
c52b2f54cf Added contract_info_v1 for Disjoint Union DLCs (#143)
* Added contract_info_v1 for Disjoint Union DLCs

* Added new negotiation fields for disjoint union DLCs
2021-02-19 00:03:32 -06:00
Nadav Kohen
10891f6fe1 Generalized contract_info TLV (#130)
* Updated TLVs to allow support for numeric outcome and multiple oracle DLCs

* Added threshold field to multi-oracle oracle_infos

* Responded to review

* Some more review
2021-02-16 01:41:02 -06:00
Thibaut Le Guilly
743725390e Enforce size prefixes for enumeration messages (#123) 2020-12-22 00:44:02 -06:00
Thibaut Le Guilly
3df71667e9 oracle proposal (#55) 2020-11-04 11:40:27 +09:00
Nadav Kohen
0b69c3ed78 Introduces happy-path static test vectors (#100)
* Added test vectors deleted from #81

* Fixed dlc_test redeemscript and added new dlc message parsing tests

* Fixed chain_hash endianness

* Added Schnorr signature point computation test vectors

* Restructured contract info json

* Restructured signature TLVs dlc_message_test.json

* UInt16 prefixed scripts and added hash pre-images to test vectors

* Added Nicolas' tests for NFC normalization and hashing

* Added dlc fee computation tests

* Added clarification to redeemscript in funding_input_v0 wrt fee computation

* Added basic tx building tests

* Updated test vectors to use 107 witness bytes for P2WPKH

* Updated test vectors to include non-p2wpkh inputs as well as dummy scripts to be used in fee tests for less modular APIs

* Added maxWitnessLen to inputs explicitly

* Fixed order and serialization of signatures

* Fixed backward stack funding signatures
2020-10-29 03:17:50 -05:00
Ben Carman
e393127632 Fix link to funding_input_v0 (#106) 2020-10-09 11:34:50 -05:00
Ben Carman
44837f9472 Oracle Announcement TLVs (#105)
* Oracle Announcement TLVs

* Nadav's review

* Respond to more review

* Range Event Descriptor

* Add num outcomes to enum descriptor
2020-10-08 15:00:37 -05:00
Thibaut Le Guilly
b8a009de69 Specify u16 as script prefix (#103) 2020-10-01 10:07:08 -05:00
Nadav Kohen
22b23ebe39 Proposed v0 DLC TLV messages and Deterministic Fee Computation (#81)
* Specified DLC TLV messages and added happy-path test vectors

* Responded to Ben's review

* Updated test vectors to use correct Multisignature ordering and up-to-date BIP 340

* Responded to Tibo's review

* Attempted to specify funding inputs and funding signatures in a general way

* Regenerated test vectors as per the updated funding input and funding signature specification

* Specified generalized fee computation and fixed test vectors

* Added oracle signature and signed transactions to test vectors

* Responded to review from Tibo

* Fixed table of contents

* Clarified TLV vs. LN Message format, fixed off-by-one fee computation, updated test vectors for fees, have not yet updated test vectors for LN Message format

* Made offer, accept and sign conform with Lightning Message format

* Added a clarification

* Made contract_info a proper object

* Fixed test vector contract id hashes

* Made redeem script use compact size uint and removed test vectors from this PR
2020-09-29 10:33:18 -05:00
Thibaut Le Guilly
dfa2a46153 Fix broken links in Messaging.md (#92) 2020-09-17 17:28:08 +09:00
Nadav Kohen
b0cbed2552 Peer Protocol for Contract Negotiation Specification (#59)
* Added Peer Protocol specification

* Responded to review

* Responded to more review
2020-09-08 16:40:04 -05:00