We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ec2f5c commit b56e345Copy full SHA for b56e345
1 file changed
core/consensus/src/util.rs
@@ -35,7 +35,9 @@ pub fn time_now() -> u64 {
35
/// a map to get the blst public key by the address. To be notice that the
36
/// address uses secp256k1 **public key** which is same as the `address` field
37
/// in `Node` struct. Use secp256k1 public key instead of address can reduce the
38
-/// `keccak256` hash calculation at the end of each height.
+/// `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.
41
pub struct OverlordCrypto {
42
private_key: BlsPrivateKey,
43
addr_pubkey: RwLock<HashMap<Bytes, BlsPublicKey>>,
0 commit comments