multi: add MuSig2Cleanup method to MuSig2 signer

This commit is contained in:
Oliver Gugger committed 2022-05-04 19:23:58 +02:00
1 parent 771d77d875
commit 95ff670c0e
6 files changed
+59

No files matched your search

+5
View File
@@ -178,6 +178,11 @@ func (m *MockSigner) MuSig2CombineSig(MuSig2SessionID,
return nil, false, nil
}
// MuSig2Cleanup removes a session from memory to free up resources.
func (m *MockSigner) MuSig2Cleanup(MuSig2SessionID) error {
return nil
}
// findKey searches through all stored private keys and returns one
// corresponding to the hashed pubkey if it can be found. The public key may
// either correspond directly to the private key or to the private key with a