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
2020-06-04 16:37:19 +09:00
2019-12-09 12:23:36 -07:00
2020-09-09 06:48:57 -05:00
2020-03-11 11:41:40 +09:00

Discreet Log Contract In Progress Specification

The specifications are currently a work-in-progress and currently being drafted.

Pull requests and comments welcome.

Please see our introduction for what a DLC is and a glossary of terms used in DLCs.

For learning more about DLC have a look at the resources page.

Specification Roadmap

Works in Progress

TODO

Future Work

  • Construction and neogatiation of DLCs in Lightning (#3)

Implementations

bitcoin-s

The team at Suredbits is working on a implementation of discreet log contracts in bitcoin-s.

  1. Documentation
  2. Github branch
  3. Interactive DLC Demo

cfd-dlc

The team at CryptoGarage is working on a C++ implementation library. A JavaScript wrapper is also available. This wrapper is currently used as inside the p2pderivatives application.

rust-dlc

@Tibo-lg and others are working on a new Rust DLC implementation

NDLC

@NicolasDorier has created a wip DLC implementation in C# which can be used with BTCPayServer


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Description
No description provided
Readme 2.9 MiB
Languages
Markdown 100%