27 Commits

Author SHA1 Message Date
Matthew Black
555f87a9d2 Add diagrams for DLC overview, rbf, and participant / outsider view (#151) 2021-03-30 15:09:16 -05:00
Nadav Kohen
898e81a23c Rewording and Renaming clean-up (#142)
Responded to review

Cleaned up a couple sentences
2021-02-24 00:51:44 -06:00
benthecarman
c8e8071561 Define input & output ordering (#136) 2021-02-24 00:36:29 -06: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
Thibaut Le Guilly
bcedd61e2c define sum function (#107) 2020-10-09 11:36:24 -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
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
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
5f6c02d882 Merge pull request #34 from AdamISZ/minor-edits-1
typos in Protocol desc
2020-03-24 08:58:08 -06: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
7b8a693a0a Update name of keys used in CET 2020-02-28 10:47:52 +09:00
nkohen
06ae4dc3a3 Fixed re-introuction of script pub key language in Transactions.md 2020-02-27 18:31:41 -06: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
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
nkohen
107d236bde Moved from using custom KeyDerivation to just using 2 keys and 2 addresses that are reused across CETs 2020-02-27 14:04:13 -06:00
Ben Carman
8c168add59 Fix links to be references to the files rather than the github 2020-02-11 22:06:19 -06:00
Ichiro0219
98adf1e607 mutual-closing-transaction-fixed 2020-01-29 09:06:17 +09:00
Ichiro0219
556212209e Add MutualClosingTransaction 2020-01-28 14:04:36 +09:00
Tibo-lg
9d6c3e05e1 Update md links and replace Justice by Penalty in KeyDerivation.md 2020-01-27 17:34:57 +09:00
Nadav Kohen
0cc2ff8844 Update Transactions.md
Updates locktime scheme and renames justice to penalty
2020-01-15 15:44:54 -06:00
Nadav Kohen
3df7dd5dc8 Funding Fees
Add up-front fees to funding tx and make funding fees proportional to funding inputs for each party
2019-12-27 14:25:06 -06:00
Nadav Kohen
8c3b6f8525 Fixed and shortened CET ToLocalOutput 2019-12-17 18:51:36 -06:00
Nadav Kohen
e74ef2ad0b Update Transactions.md 2019-12-16 11:37:06 -06:00
Nadav Kohen
7db055f1ab Respond to Review on Transactions.md 2019-12-13 17:58:19 -06:00
Nadav Kohen
9e8b7f0dc0 Create Transactions.md 2019-12-09 16:33:30 -06:00