File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ type DynAck struct {
24
24
// a dynamic commitment negotiation
25
25
ChanID ChannelID
26
26
27
+ // Sig is a signature that acknowledges and approves the parameters
28
+ // that were requested in the DynPropose
29
+ Sig Sig
30
+
27
31
// LocalNonce is an optional field that is transmitted when accepting
28
32
// a dynamic commitment upgrade to Taproot Channels. This nonce will be
29
33
// used to verify the first commitment transaction signature. This will
@@ -54,6 +58,10 @@ func (da *DynAck) Encode(w *bytes.Buffer, _ uint32) error {
54
58
return err
55
59
}
56
60
61
+ if err := WriteSig (w , da .Sig ); err != nil {
62
+ return err
63
+ }
64
+
57
65
var tlvRecords []tlv.Record
58
66
da .LocalNonce .WhenSome (func (nonce Musig2Nonce ) {
59
67
tlvRecords = append (
@@ -88,7 +96,7 @@ func (da *DynAck) Encode(w *bytes.Buffer, _ uint32) error {
88
96
// This is a part of the lnwire.Message interface.
89
97
func (da * DynAck ) Decode (r io.Reader , _ uint32 ) error {
90
98
// Parse out main message.
91
- if err := ReadElements (r , & da .ChanID ); err != nil {
99
+ if err := ReadElements (r , & da .ChanID , & da . Sig ); err != nil {
92
100
return err
93
101
}
94
102
You can’t perform that action at this time.
0 commit comments