multi: add MuSig2Cleanup method to MuSig2 signer
This commit is contained in:
6 files changed
+59
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user