From 2cf5f650b8fdbd1992f3d65ad6e102087e74f896 Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Tue, 3 May 2022 07:59:24 +0200 Subject: Use Rust Secp256k1 implementation from RustCrypto project (#92) This PR ports `hdwallet` to use the `k256` crate - a native Rust implementation of secp256k1 elliptic curve and ECDSA signing. The motivation for this change is that we can just use the `wasm32-wasi` Rust target without requiring a WASI C toolchain! Notice that the CI no longer requires installing the WASI SDK in order to build the WASI target. --- .github/workflows/rust.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.github/workflows/rust.yml') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8996ac4..b29cb3d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -28,7 +28,5 @@ jobs: - uses: actions/checkout@v2 - name: Build run: | - curl -sL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-14/wasi-sdk_14.0_amd64.deb -o /tmp/wasi-sdk.deb - sudo dpkg -i /tmp/wasi-sdk.deb rustup target add wasm32-wasi - CC=/opt/wasi-sdk/bin/clang cargo build --target wasm32-wasi + cargo build --target wasm32-wasi -- cgit v1.2.3