mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 23:01:53 +02:00
input+lnwallet: put MuSig2 types behind interface
We put the calls that don't use musig2 package specific types as parameters or return values behind an interface so we can easily call those directly in the RPC without needing to know the underlying implementation version. Some calls can't be used in the interface because they use the specific package version's types. These calls are implemented in helper functions in the input package instead that do the necessary type switches.
This commit is contained in:
@@ -476,11 +476,11 @@ type muSig2State struct {
|
||||
|
||||
// context is the signing context responsible for keeping track of the
|
||||
// public keys involved in the signing process.
|
||||
context *musig2.Context
|
||||
context input.MuSig2Context
|
||||
|
||||
// session is the signing session responsible for keeping track of the
|
||||
// nonces and partial signatures involved in the signing process.
|
||||
session *musig2.Session
|
||||
session input.MuSig2Session
|
||||
}
|
||||
|
||||
// MuSig2CreateSession creates a new MuSig2 signing session using the local
|
||||
|
Reference in New Issue
Block a user