-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #796 from lightninglabs/multisig-demo
[psbt saga part 4/4]: Multisig demo
- Loading branch information
Showing
22 changed files
with
1,817 additions
and
993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package loadtest | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
"testing" | ||
|
||
"github.com/lightninglabs/taproot-assets/itest" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
// multisigTest tests that we can use multi signature on all levels of the | ||
// Taproot Assets Protocol. This includes the BTC level, the asset level and the | ||
// group key level. | ||
func multisigTest(t *testing.T, ctx context.Context, cfg *Config) { | ||
// Start by initializing all our client connections. | ||
aliceTapd, bobTapd, bitcoinClient := initClients(t, ctx, cfg) | ||
|
||
params, err := networkParams(cfg.Network) | ||
require.NoError(t, err) | ||
|
||
var ( | ||
aliceLnd = aliceTapd.lnd | ||
bobLnd = bobTapd.lnd | ||
) | ||
|
||
aliceHost := fmt.Sprintf( | ||
"%s:%d", aliceTapd.cfg.Host, aliceTapd.cfg.Port, | ||
) | ||
|
||
itest.MultiSigTest( | ||
t, ctx, aliceTapd, bobTapd, aliceHost, bitcoinClient, aliceLnd, | ||
bobLnd, params, cfg.TestTimeout, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.