4 Commits

Author SHA1 Message Date
Thibaut Le Guilly
e8ff4a6575 Add test vector for contract id computation (#188) 2022-06-14 09:30:03 +09:00
Thibaut Le Guilly
8ecdf2aa55 Update messaging and serialization (#163)
* Update messaging and serialization

* Replace collection prefixes with bigsize instead of u16

* add test vectors

* Use old serialization format for oracle messages

* Add temporary contract id to offer message

* Rename leftEndPoint to endPoint

* Update test vectors

* Fix forgotten types

* Replace bigsize with u64 in payout curve and numeric outcome

* Update test vectors

* use bigsize for vector prefix in rounding intervals

* Update test vectors setting base as u16

* Update test vector with fix to precision field

* Update test vectors to include temporary contract id in offer message

* Add protocol version to accept message

* Add protocol version to sign message

* Fix test vectors
2022-06-12 08:36:04 -05:00
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