Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason committed Oct 11, 2023
1 parent 7ec2f5c commit b56e345
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/consensus/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ pub fn time_now() -> u64 {
/// a map to get the blst public key by the address. To be notice that the
/// address uses secp256k1 **public key** which is same as the `address` field
/// in `Node` struct. Use secp256k1 public key instead of address can reduce the
/// `keccak256` hash calculation at the end of each height.
/// `keccak256` hash calculation at the end of each height. The reason why not
/// use address directly is that the `PeerId` is binding with public key not
/// address.
pub struct OverlordCrypto {
private_key: BlsPrivateKey,
addr_pubkey: RwLock<HashMap<Bytes, BlsPublicKey>>,
Expand Down

0 comments on commit b56e345

Please sign in to comment.