bsv_wasm/ecdsa/
mod.rs

1pub mod ecdh;
2pub mod recover;
3pub mod sign;
4pub mod verify;
5
6pub use ecdh::*;
7
8#[cfg(target_arch = "wasm32")]
9use wasm_bindgen::prelude::*;
10
11/**
12 * Utility struct for low level ECDSA primitives
13 */
14#[cfg_attr(all(target_arch = "wasm32", feature = "wasm-bindgen-ecdsa"), wasm_bindgen)]
15pub struct ECDSA {}
16
17#[cfg_attr(all(target_arch = "wasm32", feature = "wasm-bindgen-ecdsa"), wasm_bindgen)]
18#[derive(PartialEq, Eq, Clone, Copy)]
19pub enum SigningHash {
20    Sha256,
21    Sha256d,
22}