-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transition remaining items to no-std
- Loading branch information
1 parent
606d02d
commit c849ea1
Showing
4 changed files
with
86 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
#![cfg_attr(not(feature = "std"), no_std)] | ||
#![doc = include_str!("../README.md")] | ||
use cfg_if::cfg_if; | ||
|
||
mod domain; | ||
mod error; | ||
mod hash; | ||
use hash::HStar; | ||
mod signature; | ||
|
||
mod signing_key; | ||
mod verification_key; | ||
|
||
pub use domain::{Binding, Domain, SpendAuth}; | ||
pub use error::Error; | ||
pub use signature::Signature; | ||
pub use signing_key::SigningKey; | ||
pub use verification_key::{VerificationKey, VerificationKeyBytes}; | ||
|
||
cfg_if! { | ||
if #[cfg(feature = "std")] { | ||
pub mod batch; | ||
|
||
mod signing_key; | ||
mod verification_key; | ||
|
||
pub use signature::Signature; | ||
pub use signing_key::SigningKey; | ||
pub use verification_key::{VerificationKey, VerificationKeyBytes}; | ||
pub use decaf377::Fr; | ||
|
||
pub use decaf377::Fr; | ||
} | ||
} | ||
#[cfg(feature = "std")] | ||
pub mod batch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters