semiotic-ai / timeline-aggregation-protocol

A fast, efficient and trust-minimized unidirectional micro-payments system.
Apache License 2.0
14 stars 3 forks source link

Add ECDSA test vectors to TAP library unit tests #43

Closed tkornuta-semiotic closed 1 year ago

tkornuta-semiotic commented 1 year ago

@severiano-sisneros please add links the blogposts you found (with test vectors) here

severiano-sisneros commented 1 year ago

Here's a couple

https://chuckbatson.wordpress.com/2014/11/26/secp256k1-test-vectors/ https://github.com/paulmillr/noble-secp256k1/tree/main/test/vectors/secp256k1

The library we're using only has one: https://github.com/RustCrypto/elliptic-curves/blob/master/k256/src/test_vectors/ecdsa.rs

These should be good enough for verifying that the ECDSA is working as expected. But I'd like to have test vectors for end to end TAP. Might be worth considering just generating our own, e.g. using Sage.