diff options
| author | Clawd <ai@clawd.bot> | 2026-02-19 21:29:48 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-19 21:29:48 -0800 |
| commit | 9d5a905507cd8366033d7c341f8123aa24d9571b (patch) | |
| tree | 72013cf72f7559d7450adc4a9a786b5d19137a82 /go.mod | |
| parent | 56b346529c9a2f231af44ba19c9226f2bc9fe726 (diff) | |
Add btcec compatibility tests
Tests our implementation against github.com/btcsuite/btcd/btcec/v2:
- TestKeyDerivationCompatibility: verify public keys match btcec
- TestOurSignatureVerifiesWithBtcec: our signatures verify with btcec
- TestBtcecSignatureVerifiesWithOurs: btcec signatures verify with ours
- TestCrossSignAndVerify: bidirectional sign/verify with same keys
- TestBIP340Vectors: official BIP-340 test vectors (14 total)
- TestTaggedHashFormat: verify tagged hash structure
All tests pass - our implementation is fully compatible with btcec
for BIP-340 Schnorr signatures.
Diffstat (limited to 'go.mod')
| -rw-r--r-- | go.mod | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -1,3 +1,11 @@ | |||
| 1 | module secp256k1-learn | 1 | module secp256k1-learn |
| 2 | 2 | ||
| 3 | go 1.23.5 | 3 | go 1.23.5 |
| 4 | |||
| 5 | require github.com/btcsuite/btcd/btcec/v2 v2.3.6 | ||
| 6 | |||
| 7 | require ( | ||
| 8 | github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect | ||
| 9 | github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect | ||
| 10 | github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect | ||
| 11 | ) | ||
