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. --- src/cmd/public_key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd') diff --git a/src/cmd/public_key.rs b/src/cmd/public_key.rs index 360255b..1f724ba 100644 --- a/src/cmd/public_key.rs +++ b/src/cmd/public_key.rs @@ -19,7 +19,7 @@ pub fn run(options: Options) -> Result<()> { .account .private_key()? .public() - .serialize_uncompressed() + .encode_uncompressed() ) ); Ok(()) -- cgit v1.2.3