Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Remove Public Key #63

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions peerstore/peerstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ type KeyBook interface {
// AddPubKey stores the public key of a peer.
AddPubKey(peer.ID, ic.PubKey) error

// RemovePubKey removes the public key of a peer.
RemovePubKey(peer.ID) error

// PrivKey returns the private key of a peer, if known. Generally this might only be our own
// private key, see
// https://discuss.libp2p.io/t/what-is-the-purpose-of-having-map-peer-id-privatekey-in-peerstore/74.
Expand Down