1use std::result;
2
3use ex3_node_error::Error;
4
5pub use bip::bip44;
6
7pub type Result<T> = result::Result<T, Error>;
8
9mod bip;
10
11#[cfg(feature = "secp256k1")]
12pub mod secp256k1;
13
14mod error;
15#[cfg(feature = "hash")]
16mod hash;
17#[cfg(feature = "hash")]
18pub use hash::*;
19#[cfg(feature = "verify")]
20pub mod verify;
21
22#[cfg(feature = "canister")]
23pub fn always_fail(_buf: &mut [u8]) -> result::Result<(), getrandom::Error> {
25 Err(getrandom::Error::UNSUPPORTED)
26}
27
28#[cfg(feature = "canister")]
29getrandom::register_custom_getrandom!(always_fail);