Commit Graph

2 Commits

Author SHA1 Message Date
Lloyd Fournier
fcc9619f35 Introduce first version of ECDSA adaptor signature spec (#114)
* First version of ECDSA adaptor signature spec

* Fix typos in ecdsa_adaptor.md

* Fix more typos is ecdsa adaptor

* Rename ecdsa_adaptor.md => ECDSA-adaptor.md

* Add ECDSA adaptor spec tests

* s/verification_key/public_signing_key/

* Apply suggestions from @jesseposner

Co-authored-by: Jesse Posner <jesse.posner@gmail.com>

* Update spec to use "DLEQ" tag

- Modify and add new test vectors
- Change text a bit

* Fix typo ECDSA-adaptor.md

Co-authored-by: Jesse Posner <jesse.posner@gmail.com>

* Add serialization test vectors

* Add warning about leaking DH key

* Add references section

* Fix references

* Make DLEQ proof section less wordy

* [ecdsa-adaptor] Make key ordering consistent in test vectors

Co-authored-by: Jesse Posner <jesse.posner@gmail.com>
2021-05-07 15:28:45 -05: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