-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathlib.rs
executable file
·50 lines (43 loc) · 1.01 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//!
#![no_std]
#![allow(non_snake_case)]
#![doc = include_str!("../README.md")]
#![warn(missing_docs)]
// #![deny(warnings, missing_docs)]
#[cfg(all(feature = "alloc", not(feature = "std")))]
#[macro_use]
extern crate alloc;
#[cfg(all(feature = "alloc", not(feature = "std")))]
pub(crate) use alloc::vec::Vec;
#[cfg(feature = "std")]
#[macro_use]
extern crate std;
#[cfg(feature = "std")]
pub(crate) use std::vec::Vec;
#[cfg(feature = "serde")]
extern crate serde_crate as serde;
pub use secp256kfun as fun;
pub use secp256kfun::nonce;
// musig needs vecs
#[cfg(feature = "alloc")]
pub mod musig;
mod signature;
pub use signature::Signature;
pub mod adaptor;
mod keypair;
pub use keypair::KeyPair;
mod schnorr;
pub use schnorr::*;
mod message;
pub use message::*;
#[cfg(feature = "libsecp_compat")]
mod libsecp_compat;
#[macro_export]
#[doc(hidden)]
macro_rules! test_instance {
() => {
$crate::Schnorr::<sha2::Sha256, _>::new(
$crate::nonce::Deterministic::<sha2::Sha256>::default(),
)
};
}