summaryrefslogtreecommitdiffhomepage
path: root/src/keypair.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/keypair.go')
-rw-r--r--src/keypair.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/keypair.go b/src/keypair.go
index b5f46df..ba9c437 100644
--- a/src/keypair.go
+++ b/src/keypair.go
@@ -29,3 +29,9 @@ func (kp *KeyPairs) Current() *KeyPair {
defer kp.mutex.RUnlock()
return kp.current
}
+
+func (device *Device) DeleteKeyPair(key *KeyPair) {
+ key.send = nil
+ key.receive = nil
+ device.indices.Delete(key.localIndex)
+}