ckb_crypto/secp/
mod.rs

1//! `secp256k1` wrapper
2
3use ckb_fixed_hash::H256;
4
5/// A (hashed) message input to an ECDSA signature
6pub type Message = H256;
7
8/// The reference to lazily-initialized static secp256k1 engine, used to execute all signature operations
9pub static SECP256K1: std::sync::LazyLock<secp256k1::Secp256k1<secp256k1::All>> =
10    std::sync::LazyLock::new(secp256k1::Secp256k1::new);
11
12mod error;
13mod generator;
14mod privkey;
15mod pubkey;
16mod signature;
17
18pub use self::error::Error;
19pub use self::generator::Generator;
20pub use self::privkey::Privkey;
21pub use self::pubkey::Pubkey;
22pub use self::signature::Signature;
23
24#[cfg(test)]
25mod tests;