mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 05:17:49 +08:00
go-ipfs-config: config: guard against privkey being overwritten in fsrepo setConfig
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
parent
f85178776e
commit
b4fd445e0e
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user