From b4fd445e0e35ed6d2285c7d887f92d85ef69fb2c Mon Sep 17 00:00:00 2001 From: Jeromy Date: Mon, 29 Aug 2016 14:56:55 -0700 Subject: [PATCH] go-ipfs-config: config: guard against privkey being overwritten in fsrepo setConfig License: MIT Signed-off-by: Jeromy --- config/identity.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/identity.go b/config/identity.go index d997bc2b6..55fc11e70 100644 --- a/config/identity.go +++ b/config/identity.go @@ -5,6 +5,10 @@ import ( ic "gx/ipfs/QmUWER4r4qMvaCnX5zREcfyiWN7cXN9g3a7fkRqNz8qWPP/go-libp2p-crypto" ) +const IdentityTag = "Identity" +const PrivKeyTag = "PrivKey" +const PrivKeySelector = IdentityTag + "." + PrivKeyTag + // Identity tracks the configuration of the local node's identity. type Identity struct { PeerID string