Skip to content

Commit 2b683f2

Browse files
author
Eason
committed
add some annotation
1 parent d70a75c commit 2b683f2

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

common/config-parser/src/types/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ pub const DEFAULT_CACHE_SIZE: usize = 100;
2323
#[derive(Clone, Debug, Deserialize)]
2424
pub struct Config {
2525
// crypto
26+
/// `net_privkey` is used for network connection.
2627
#[serde(deserialize_with = "deserialize_256bits_key")]
2728
pub net_privkey: Key256Bits,
29+
/// `bls_privkey` is used for signing consensus messages.
2830
#[serde(deserialize_with = "deserialize_256bits_key")]
2931
pub bls_privkey: Key256Bits,
3032

devtools/chain/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# crypto
2+
# net_privkey is used for network, bls_privkey is use for sign consensus messages
3+
# DO NOT USE this private key in any production environment!
24
net_privkey = "0x37aa0f893d05914a4def0460c0a984d3611546cfb26924d7a7ca6e0db9950a2d"
35
bls_privkey = "0x4179b05f5ad5bdd46ca98a9e8b435b00a504562dfe02687895edf747ddf5de18"
46

0 commit comments

Comments
 (0)