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

+10
View File
@@ -94,6 +94,11 @@ func (d *DummySigner) MuSig2CombineSig(input.MuSig2SessionID,
return nil, false, nil
}
// MuSig2Cleanup removes a session from memory to free up resources.
func (d *DummySigner) MuSig2Cleanup(input.MuSig2SessionID) error {
return nil
}
// SingleSigner is an implementation of the Signer interface that signs
// everything with a single private key.
type SingleSigner struct {
@@ -227,3 +232,8 @@ func (s *SingleSigner) MuSig2CombineSig(input.MuSig2SessionID,
return nil, false, nil
}
// MuSig2Cleanup removes a session from memory to free up resources.
func (s *SingleSigner) MuSig2Cleanup(input.MuSig2SessionID) error {
return nil
}