Commit Graph

77 Commits

Author SHA1 Message Date
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
Thibaut Le Guilly
bcedd61e2c define sum function (#107) 2020-10-09 11:36:24 -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
Nadav Kohen
90b9cb7463 Tuesday October 6 2020 Meeting (#101)
* October meeting doc

* Made sighash comment less percise and hence less wrong

* Some updates

* Post meeting updates
2020-10-07 10:09:04 -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
Thibaut Le Guilly
6d443fc8fd Add cfd and p2pd references (#80) 2020-09-09 06:48:57 -05:00
Nadav Kohen
d379bf5639 Updated the readme (#79) 2020-09-08 17:10:15 -05:00
Ben Carman
f724f82c3b Order funding keys by lexicographical order (#75)
* Order funding keys by lexicographical order

* Add clarifation and rationale
2020-09-08 17:10:03 -05: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
Nadav Kohen
a966ac7297 Adaptor DLC Transactions Specification (#57)
* Re-wrote the Transactions specification to match the new adaptor signature based DLCs and to match the BOLT style

* Responded to some review
2020-09-08 16:05:27 -05:00
Nadav Kohen
7905d5e89a Tuesday September 1 2020 Meeting (#66)
* Tuesday September 1 2020 Meeting

* Added some details

* Add C# impl
2020-09-08 15:46:15 -05:00
Chris Stewart
ebf9414fc9 Merge pull request #49 from Christewart/2020-08-06-intro-readme
Add introduction to README
2020-08-06 12:59:31 -05:00
christewart
7c26c32646 Remove redundant 'project' word 2020-08-06 07:20:56 -05:00
christewart
e4c1370df7 Remove INTRO from TODO, add our project dashboard 2020-08-06 07:19:50 -05:00
christewart
7296cdef02 Add introduction to README 2020-08-06 06:52:13 -05:00
Chris Stewart
29b1d5da6f Merge pull request #42 from nkohen/meeting
Tuesday August 4 2020 Meeting
2020-08-06 06:34:48 -05:00
nkohen
b2df52e83b Post meeting notes 2020-08-05 12:43:55 -05:00
Chris Stewart
073986db63 Add implementations section on the README (#43)
* Add implementations and bitcoin-s section to the README

* Add interactive demo, add adaptor-dlc branch for implementation
2020-08-03 15:00:34 -05:00
nkohen
32e77b4f10 Added some topics people want to discuss 2020-07-31 10:19:25 -05:00
nkohen
0c882ee818 Added start of agenda for Aug. 4 2020 meeting 2020-07-29 16:40:04 -05:00
Nadav Kohen
fa238f8213 June 9 2020 Meeting (#41)
* Added doc for june_9_2020 meeting

* Responded to review
2020-06-15 12:52:11 -05:00
Tibo-lg
ba82c87984 Update introduction 2020-06-04 16:37:19 +09:00
Antoine Riard
fe23400bb4 [introduction] Add a introduction starter
We describe main ideas of DLC, therefore oracle, DLC, offers negotiation
contract execution transaction, adaptor sigs.
2020-06-04 16:37:19 +09:00
Nadav Kohen
bc02868961 Merge pull request #36 from nkohen/add-meeting-dir
Added meeting directory and first meeting doc
2020-05-08 09:47:31 -06:00
nkohen
6139165bf0 Notes from meeting 2020-05-07 10:00:32 -05:00
nkohen
84b4cfc810 Added meeting directory and first meeting doc 2020-05-01 12:36:14 -05:00
Thibaut Le Guilly
ef2b794e20 Merge pull request #31 from Tibo-lg/add-resources-page
Add resources page
2020-03-26 08:20:44 +09:00
Nadav Kohen
5f6c02d882 Merge pull request #34 from AdamISZ/minor-edits-1
typos in Protocol desc
2020-03-24 08:58:08 -06:00
Thibaut Le Guilly
0fc2e66d00 Merge pull request #33 from Tibo-lg/fix-typos
Fix small typos
2020-03-19 10:32:20 +09:00
Adam Gibson
50f73546a8 typos 2020-03-18 15:12:40 +00:00
Tibo-lg
503b63cea2 Fix small typos 2020-03-11 14:37:45 +09:00
Tibo-lg
9fb2441d95 Add resources page 2020-03-11 11:41:40 +09:00
Nadav Kohen
8b80ba5d50 Merge pull request #27 from benthecarman/update-roadmap
Update roadmap to reflect #10, #23
2020-02-28 13:04:05 -07:00
Ben Carman
fd6c683d6f Update roadmap to reflect #10, #23 2020-02-28 13:56:00 -06:00
Nadav Kohen
206c609944 Merge pull request #28 from Tibo-lg/update-cet-key-name
Update name of keys used in CET
2020-02-28 12:51:37 -07:00
Tibo-lg
7b8a693a0a Update name of keys used in CET 2020-02-28 10:47:52 +09:00
Nadav Kohen
6afe83c4e6 Merge pull request #26 from nkohen/fix-spk-reintro
SPK -> Address in Transactions.md again
2020-02-27 17:32:21 -07:00
nkohen
06ae4dc3a3 Fixed re-introuction of script pub key language in Transactions.md 2020-02-27 18:31:41 -06:00
Nadav Kohen
790c65f218 Merge pull request #23 from nkohen/specify_sequence_numbers
Sequence Numbers and Locktimes
2020-02-27 17:05:30 -07:00
nkohen
bbf992f7d3 Specified squence numbers and locktimes to avoid fingerprinting and RBF
Got rid of sequence and locktime restrictions on penalty tx
2020-02-27 18:04:28 -06:00
Nadav Kohen
e1db012aaf Merge pull request #10 from nkohen/four-key-derivation
Rework and simplify key derivation
2020-02-27 16:55:05 -07:00
Nadav Kohen
09bf76a918 Merge pull request #24 from benthecarman/patch-1
Add PR link for nLocktimes and sequence numbers
2020-02-27 13:53:12 -07:00
Ben Carman
247caf6a87 Update README.md 2020-02-27 14:31:18 -06:00
Ben Carman
bd3cbcb259 fix typo 2020-02-27 14:30:23 -06:00
Ben Carman
d74cb8be2c Add PR link for nLocktimes and sequence numbers 2020-02-27 14:28:50 -06:00
nkohen
28b674b560 Responded to review and removed ToRemote Address entirely 2020-02-27 14:05:43 -06:00
nkohen
27714629ea Altered the Local ToLocal key to use the funding key and the hash of the ToLocal key to avoid rogue key attacks 2020-02-27 14:04:13 -06:00