-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This ensures that for each compressed public key there's at most one lazy public key, which means everyone profits when it is uncompressed. This drops the (unused: never read from) BLS public key cache.
- Loading branch information
Showing
31 changed files
with
322 additions
and
374 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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,20 +1,16 @@ | ||
pub use lazy::LazyPublicKey; | ||
use nimiq_hash::Blake2sHash; | ||
pub use types::*; | ||
|
||
// Implements the LazyPublicKey type. Which is a faster, cached version of PublicKey. | ||
#[cfg(feature = "lazy")] | ||
pub mod lazy; | ||
mod lazy; | ||
|
||
// Implements all of the types needed to do BLS signatures. | ||
mod types; | ||
|
||
// Specifies the hash algorithm used for signatures | ||
pub type SigHash = Blake2sHash; | ||
|
||
// A simple cache implementation for the (un)compressed keys. | ||
#[cfg(feature = "cache")] | ||
pub mod cache; | ||
|
||
// Implements the tagged-signing traits | ||
#[cfg(feature = "serde-derive")] | ||
mod tagged_signing; |
Oops, something went wrong.