Skip to content

Commit

Permalink
feat(crypto): CRP-2624 Create tECDSA/tSchnorr/vetKD mock canister (#1029
Browse files Browse the repository at this point in the history
)

* feat(crypto): CRP-2624 Create tECDSA/tSchnorr/vetKD mock canister

* sign_digest_with_ecdsa instead of sign_message_with_ecdsa

* Add Schnorr tests

* Add build/test in Makefile

* Add vetKD tests

* sign_message_with_ecdsa

* Adapt register_custom_getrandom documentation

* Simplify dfx.json

* Add call counts

* Update README

* Update CODEOWNERS

* Update README

* Dependency cleanup

* sign_digest_with_ecdsa

* Prepare for publishing

* Cleanup
  • Loading branch information
fspreiss authored Nov 8, 2024
1 parent c38f9bc commit 02af2fc
Show file tree
Hide file tree
Showing 17 changed files with 3,944 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
/rust/send_http_post/ @dfinity/growth
/rust/simd/ @dfinity/execution
/rust/threshold-ecdsa/ @dfinity/crypto-team
/rust/threshold-mock/ @dfinity/crypto-team
/rust/threshold-schnorr/ @dfinity/crypto-team
/rust/token_transfer/ @dfinity/growth
/rust/token_transfer_from/ @dfinity/growth
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/rust-threshold-mock-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: rust-threshold-mock
on:
push:
branches:
- master
pull_request:
paths:
- rust/threshold-mock/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/rust-threshold-mock-example.yml
- .ic-commit
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust-threshold-mock-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Install PocketIC server Darwin
uses: dfinity/pocketic@main
with:
pocket-ic-server-version: "6.0.0"
- name: Build threshold-mock Darwin
run: |
pushd rust/threshold-mock
cargo build --target wasm32-unknown-unknown --release
popd
- name: Lint threshold-mock Darwin
run: |
pushd rust/threshold-mock
cargo fmt --all -- --check && cargo clippy --all-targets --all-features -- -D warnings
popd
- name: Test threshold-mock Darwin
run: |
pushd rust/threshold-mock
cargo test
popd
rust-threshold-mock-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Install PocketIC server Linux
uses: dfinity/pocketic@main
with:
pocket-ic-server-version: "6.0.0"
- name: Build threshold-mock Linux
run: |
pushd rust/threshold-mock
cargo build --target wasm32-unknown-unknown --release
popd
- name: Lint threshold-mock Linux
run: |
pushd rust/threshold-mock
cargo fmt --all -- --check && cargo clippy --all-targets --all-features -- -D warnings
popd
- name: Test threshold-mock Linux
run: |
pushd rust/threshold-mock
cargo test
popd
17 changes: 17 additions & 0 deletions rust/threshold-mock/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Various IDEs and Editors
.vscode/
.idea/
**/*~

# Mac OSX temporary files
.DS_Store
**/.DS_Store

# dfx temporary files
.dfx/

# rust
target/

# environment variables
.env
20 changes: 20 additions & 0 deletions rust/threshold-mock/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Contributing

## Contributing code changes

This repository is currently not open to direct contributions. However, if you want to contribute a feature or bug fix, please **reach out to us** so that we can discuss feasibility and implementation strategies. You can reach out to us:

- on the [forum]
- by opening [GitHub issues]

Make sure to read the [README] and [LICENSE] first.

## Bug reports

We always appreciate bug reports through [GitHub issues].

[GitHub issues]: https://github.com/dfinity/TODO/issues
[forum]: https://forum.dfinity.org/
[LICENSE]: LICENSE
[HACKING]: HACKING.md
[README]: README.md
Loading

0 comments on commit 02af2fc

Please sign in to comment.