Skip to content

Commit ac39c0d

Browse files
committed
resolved review comments
1 parent bc860e1 commit ac39c0d

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

mithril-stm/src/membership_commitment/merkle_tree/commitment.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
use std::marker::PhantomData;
2-
1+
use anyhow::{Context, anyhow};
32
use blake2::digest::{Digest, FixedOutput};
43
use serde::{Deserialize, Serialize};
4+
use std::marker::PhantomData;
55

66
use crate::membership_commitment::merkle_tree::{
77
MerkleBatchPath, MerklePath, MerkleTreeLeaf, parent, sibling,
88
};
99
use crate::{MerkleTreeError, StmResult};
10-
use anyhow::{Context, anyhow};
1110

1211
/// `MerkleTree` commitment.
1312
/// This structure differs from `MerkleTree` in that it does not contain all elements, which are not always necessary.

mithril-stm/src/membership_commitment/merkle_tree/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
use blake2::digest::{Digest, FixedOutput};
2+
use serde::{Deserialize, Serialize};
13
use std::marker::PhantomData;
24

35
use crate::{MerkleTreeError, StmResult};
4-
use blake2::digest::{Digest, FixedOutput};
5-
use serde::{Deserialize, Serialize};
66

77
/// Path of hashes from root to leaf in a Merkle Tree.
88
/// Contains all hashes on the path, and the index of the leaf.

mithril-stm/src/protocol/mod.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ mod single_signature;
99
pub use aggregate_signature::{
1010
AggregateSignature, AggregateSignatureType, AggregateVerificationKey, BasicVerifier, Clerk,
1111
};
12-
pub use error::*;
13-
pub use key_registration::*;
14-
pub use parameters::*;
12+
pub(crate) use eligibility_check::is_lottery_won;
13+
pub use error::{
14+
AggregateSignatureError, AggregationError, MerkleTreeError, MultiSignatureError, RegisterError,
15+
SignatureError, blst_error_to_stm_error,
16+
};
17+
pub use key_registration::{ClosedKeyRegistration, KeyRegistration, RegisteredParty};
18+
pub use parameters::Parameters;
1519
pub use participant::{Initializer, Signer, VerificationKey, VerificationKeyProofOfPossession};
1620
pub use single_signature::{SingleSignature, SingleSignatureWithRegisteredParty};
1721

mithril-stm/src/protocol/participant/signer.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
use blake2::digest::{Digest, FixedOutput};
22

33
use crate::signature_scheme::{BlsSignature, BlsSigningKey, BlsVerificationKey};
4-
use crate::{
5-
ClosedKeyRegistration, Parameters, SingleSignature, Stake,
6-
protocol::eligibility_check::is_lottery_won,
7-
};
4+
use crate::{ClosedKeyRegistration, Parameters, SingleSignature, Stake, is_lottery_won};
85

96
/// Wrapper of the MultiSignature Verification key
107
pub type VerificationKey = BlsVerificationKey;

0 commit comments

Comments
 (0)