input+wallet: extract musig2 session management into new module
In this commit, we extract the musig2 session management into a new module. This allows us to re-use the session logic elsewhere in unit tests so we don't need to instantiate the entire wallet.
This commit is contained in:
13 files changed
+402
-371
No files matched your search
@@ -656,9 +656,8 @@ func (r *RPCKeyRing) ComputeInputScript(tx *wire.MsgTx,
|
||||
// submitted as well to reduce the number of method calls necessary later on.
|
||||
func (r *RPCKeyRing) MuSig2CreateSession(bipVersion input.MuSig2Version,
|
||||
keyLoc keychain.KeyLocator, pubKeys []*btcec.PublicKey,
|
||||
tweaks *input.MuSig2Tweaks,
|
||||
otherNonces [][musig2.PubNonceSize]byte) (*input.MuSig2SessionInfo,
|
||||
error) {
|
||||
tweaks *input.MuSig2Tweaks, otherNonces [][musig2.PubNonceSize]byte,
|
||||
sessionOpts ...musig2.SessionOption) (*input.MuSig2SessionInfo, error) {
|
||||
|
||||
apiVersion, err := signrpc.MarshalMuSig2Version(bipVersion)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user