feat: allow verify functions to build for wasm

This commit is contained in:
rvcas
2023-02-06 14:43:21 -05:00
committed by Lucas
parent 5d0c5d2a5b
commit 67a2674d27
4 changed files with 233 additions and 33 deletions

View File

@@ -48,6 +48,10 @@ pub enum Error {
DeserialisationError(String, Value),
#[error("Integer overflow")]
OverflowError,
#[cfg(not(feature = "wasm"))]
#[error(transparent)]
Secp256k1(#[from] secp256k1::Error),
#[cfg(feature = "wasm")]
#[error(transparent)]
Secp256k1(#[from] k256::ecdsa::Error),
}