lnwire: add new musig2 partial signature type

In this commit, we add the new types that'll house musig signatures with
and without their nonces. We send the nonce along with the sig
everywhere but the co-op close flow.
This commit is contained in:
Olaoluwa Osuntokun committed 2023-08-22 16:29:24 -07:00
1 parent 5b7caaea6d
commit 14949c972d
2 files changed
+204 -1

No files matched your search

+3 -1
View File
@@ -160,7 +160,9 @@ func TestWriteSig(t *testing.T) {
func TestWriteSigs(t *testing.T) {
buf := new(bytes.Buffer)
sig1, sig2, sig3 := Sig{bytes: [64]byte{1}}, Sig{bytes: [64]byte{2}}, Sig{bytes: [64]byte{3}}
sig1 := Sig{bytes: [64]byte{1}}
sig2 := Sig{bytes: [64]byte{2}}
sig3 := Sig{bytes: [64]byte{3}}
data := []Sig{sig1, sig2, sig3}
// First two bytes encode the length of the slice.