Skip to content

Commit

Permalink
Merge pull request #2121 from CosmWasm/chipshort/ecdsa-tests
Browse files Browse the repository at this point in the history
Additional ecdsa tests prototype
  • Loading branch information
chipshort committed Apr 26, 2024
2 parents 4505c22 + 8540874 commit 36635db
Show file tree
Hide file tree
Showing 14 changed files with 19,149 additions and 137 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ serde = { version = "1.0.103", default-features = false, features = ["derive", "
serde_json = "1.0.40"
sha2 = "0.10"
sha3 = "0.10"
hex = "0.4"
hex = { version = "0.4", features = ["serde"] }
hex-literal = "0.4.1"
english-numbers = "0.3"

Expand Down
21 changes: 21 additions & 0 deletions packages/crypto/testdata/rootberg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Rootberg test data

This folder contains test vectors from
[Project Rootberg](https://github.com/bleichenbacher-daniel/Rooterberg) to
increase the test coverage of public key recovery implementations.

This test data is used by integration tests in `test/rootberg_*.rs`.

## Update

To ensure integrity of the files and update them to the latest version, run this
from the repo root:

```sh
(cd packages/crypto/testdata/rootberg \
&& curl -sSL https://github.com/bleichenbacher-daniel/Rooterberg/raw/main/ecdsa/ecdsa_secp256k1_keccak256_raw.json > ecdsa_secp256k1_keccak256_raw.json \
&& curl -sSL https://github.com/bleichenbacher-daniel/Rooterberg/raw/main/ecdsa/ecdsa_secp256k1_sha_256_raw.json > ecdsa_secp256k1_sha_256_raw.json \
&& curl -sSL https://github.com/bleichenbacher-daniel/Rooterberg/raw/main/ecdsa/ecdsa_secp256r1_keccak256_raw.json > ecdsa_secp256r1_keccak256_raw.json \
&& curl -sSL https://github.com/bleichenbacher-daniel/Rooterberg/raw/main/ecdsa/ecdsa_secp256r1_sha_256_raw.json > ecdsa_secp256r1_sha_256_raw.json \
)
```
Loading

0 comments on commit 36635db

Please sign in to comment.