mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 16:55:13 +02:00
lnwire: add musig2 taproot execution messages for dynamic commitments
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
9b1c04c210
commit
9793fbb94b
@@ -804,9 +804,24 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
var da DynAck
|
||||
|
||||
rand.Read(da.ChanID[:])
|
||||
if rand.Uint32()%2 == 0 {
|
||||
var nonce Musig2Nonce
|
||||
rand.Read(nonce[:])
|
||||
da.LocalNonce = fn.Some(nonce)
|
||||
}
|
||||
|
||||
v[0] = reflect.ValueOf(da)
|
||||
},
|
||||
MsgKickoffSig: func(v []reflect.Value, r *rand.Rand) {
|
||||
ks := KickoffSig{
|
||||
ExtraData: make([]byte, 0),
|
||||
}
|
||||
|
||||
rand.Read(ks.ChanID[:])
|
||||
rand.Read(ks.Signature.bytes[:])
|
||||
|
||||
v[0] = reflect.ValueOf(ks)
|
||||
},
|
||||
MsgCommitSig: func(v []reflect.Value, r *rand.Rand) {
|
||||
req := NewCommitSig()
|
||||
if _, err := r.Read(req.ChanID[:]); err != nil {
|
||||
@@ -1270,6 +1285,12 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
return mainScenario(&m)
|
||||
},
|
||||
},
|
||||
{
|
||||
msgType: MsgKickoffSig,
|
||||
scenario: func(m KickoffSig) bool {
|
||||
return mainScenario(&m)
|
||||
},
|
||||
},
|
||||
{
|
||||
msgType: MsgUpdateAddHTLC,
|
||||
scenario: func(m UpdateAddHTLC) bool {
|
||||
|
Reference in New Issue
Block a user