@cryptotaxi247 / kubo / commits / b4fd445e0

go-ipfs-config: config: guard against privkey being overwritten in fsrepo setConfig

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed Aug 29, 2016 at 14:56 UTC b4fd445e0e35ed6d2285c7d887f92d85ef69fb2c
1 file changed +4
config/identity.go
+4
@@ -5,6 +5,10 @@ import (
5 ic "gx/ipfs/QmUWER4r4qMvaCnX5zREcfyiWN7cXN9g3a7fkRqNz8qWPP/go-libp2p-crypto"
6 )
7
8 +const IdentityTag = "Identity"
9 +const PrivKeyTag = "PrivKey"
10 +const PrivKeySelector = IdentityTag + "." + PrivKeyTag
11 +
12 // Identity tracks the configuration of the local node's identity.
13 type Identity struct {
14 PeerID string