Skip to content

Commit b56e345

Browse files
author
Eason
committed
cargo fmt
1 parent 7ec2f5c commit b56e345

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/consensus/src/util.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ pub fn time_now() -> u64 {
3535
/// a map to get the blst public key by the address. To be notice that the
3636
/// address uses secp256k1 **public key** which is same as the `address` field
3737
/// in `Node` struct. Use secp256k1 public key instead of address can reduce the
38-
/// `keccak256` hash calculation at the end of each height.
38+
/// `keccak256` hash calculation at the end of each height. The reason why not
39+
/// use address directly is that the `PeerId` is binding with public key not
40+
/// address.
3941
pub struct OverlordCrypto {
4042
private_key: BlsPrivateKey,
4143
addr_pubkey: RwLock<HashMap<Bytes, BlsPublicKey>>,

0 commit comments

Comments
 (0)