multi: add MuSig2Cleanup method to MuSig2 signer

This commit is contained in:
Oliver Gugger
2022-05-04 18:31:44 +02:00
parent 771d77d875
commit 95ff670c0e
6 changed files with 59 additions and 0 deletions

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