Olaoluwa Osuntokun
5953eaa9d8
lnwire: add fuzz tests for ClosingComplete+ClosingSigs
2024-02-05 16:30:26 -08:00
Keagan McClelland
9793fbb94b
lnwire: add musig2 taproot execution messages for dynamic commitments
2023-11-10 13:29:52 -08:00
Keagan McClelland
564bf852bb
lnwire: add fuzz tests for new dynamic commitment message types
2023-11-10 13:29:30 -08:00
Matt Morehouse
ed1b54ac3a
lnwire: use require package for onion failure fuzz tests
2023-10-27 14:52:00 -05:00
Matt Morehouse
a7ee45bea0
lnwire: add FuzzFailIncorrectDetails test
...
The test is identical to other onion failure fuzz tests, except that it
uses a custom equality function to get around the nil != []byte{} issue
with reflect.DeepEqual.
2023-10-27 14:52:00 -05:00
Matt Morehouse
2181fd432c
lnwire: fuzz onion failure messages
...
Fuzz tests for decoding and encoding of onion failure messages, based on
the fuzz harness for other lnwire messages. The onion failure messages
were uncovered by existing fuzz tests.
2023-10-27 14:12:41 -05:00
Olaoluwa Osuntokun
b368e476c5
lnwire: update Sig to support both ECDSA and schnorr sigs
...
In this commit, we update the Sig type to support ECDSA and schnorr
signatures. We need to do this as the HTLC signatures will become
schnorr sigs for taproot channels. The current spec draft opts to
overload this field since both the sigs are actually 64 bytes in length.
The only consideration with this move is that callers need to "coerce" a
sig to the proper type if they need schnorr signatures.
2023-08-22 16:29:19 -07:00
Matt Morehouse
460ba4ad82
lnwire: use require package for fuzz tests
...
Simplify code by using the require package instead of t.Fatal().
2023-05-23 08:37:22 -05:00
Matt Morehouse
e198e6693f
lnwire: add FuzzConvertFixedSignature test
...
Test conversion of fixed 64-byte signatures to DER-encoded signatures.
2023-05-12 11:07:57 -05:00
Matt Morehouse
a6a7066454
lnwire: add FuzzParseRawSignature test
...
Test parsing and serialization of raw DER-encoded signatures.
2023-05-12 11:07:54 -05:00
yyforyongyu
6b9217acfc
multi: replace FundingLocked
related docs
...
This commit replaces `FundingLocked` found in docs using the following
command,
```shell
find . -name "*.go" -exec sed -i '' 's/FundingLocked/ChannelReady/g' {} \;
find . -name "*.go" -exec sed -i '' 's/FundingLock/ChannelReady/g' {} \;
```
2023-03-17 18:21:59 +08:00
yyforyongyu
015446559b
funding+lnwire: rename FundingLocked
related tests
...
This commit is created by running the following commands,
```shell
gofmt -d -w -r 'fundingLockedAlice -> channelReadyAlice' .
gofmt -d -w -r 'fundingLockedBob -> channelReadyBob' .
gofmt -d -w -r 'assertHandleFundingLocked -> assertHandleChannelReady' .
gofmt -d -w -r 'assertFundingLockedSent -> assertChannelReadySent' .
gofmt -d -w -r 'aliceFundingLocked -> aliceChannelReady' .
gofmt -d -w -r 'bobFundingLocked -> bobChannelReady' .
gofmt -d -w -r 'FuzzFundingLocked -> FuzzChannelReady' .
gofmt -d -w -r 'newMsgFundingLocked -> newMsgChannelReady' .
gofmt -d -w -r 'TestFundingManagerReceiveFundingLockedTwice -> TestFundingManagerReceiveChannelReadyTwice' .
gofmt -d -w -r 'TestFundingManagerRestartAfterReceivingFundingLocked -> TestFundingManagerRestartAfterReceivingChannelReady' .
```
2023-03-17 18:21:59 +08:00
yyforyongyu
c8e8358918
channeldb+lnwire: rename MsgFundingLocked
to MsgChannelReady
...
This commit is created by running,
```shell
gofmt -d -w -r 'MsgFundingLocked -> MsgChannelReady' .
gco master channeldb/migration
```
2023-03-17 18:21:58 +08:00
ziggie
88a8c6618d
lnwire: add custom message to fuzz tests
2023-01-21 08:46:55 +01:00
Matt Morehouse
f0f99d7e36
lnwire: add fuzz test for Warning
2022-11-11 11:56:49 -06:00
Matt Morehouse
e15d3e898e
brontide,lnwire,wtwire,zpay32: appease linter
...
Address all linter complaints for the newly migrated fuzz tests.
2022-11-11 08:44:30 -06:00
Matt Morehouse
5a48568806
brontide,lnwire,wtwire,zpay32: use CamelCase
...
Rename fuzz test functions to use CamelCase.
2022-11-11 08:44:24 -06:00
Conner
3d4d8cd6cc
lnwire: migrate fuzz tests
2022-11-11 08:43:32 -06:00