From b56e345de97aed77a28561e7c083721db55daf54 Mon Sep 17 00:00:00 2001 From: Eason Date: Wed, 11 Oct 2023 22:48:19 +0800 Subject: [PATCH] cargo fmt --- core/consensus/src/util.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/consensus/src/util.rs b/core/consensus/src/util.rs index 97313aefe..f56b517f3 100644 --- a/core/consensus/src/util.rs +++ b/core/consensus/src/util.rs @@ -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>,