|
6 | 6 | "fmt"
|
7 | 7 |
|
8 | 8 | "github.com/btcsuite/btcd/btcec"
|
| 9 | + "github.com/btcsuite/btcd/txscript" |
| 10 | + "github.com/btcsuite/btcd/wire" |
| 11 | + "github.com/btcsuite/btcutil" |
9 | 12 | "github.com/lightningnetwork/lnd/keychain"
|
10 | 13 | "github.com/lightningnetwork/lnd/lnrpc"
|
11 | 14 | "github.com/lightningnetwork/lnd/lnrpc/signrpc"
|
@@ -219,7 +222,7 @@ func runSignOutputRaw(t *harnessTest, net *lntest.NetworkHarness,
|
219 | 222 | require.NoError(t.t, err)
|
220 | 223 | require.Equal(t.t, int32(0), keyDesc.KeyLoc.KeyIndex)
|
221 | 224 |
|
222 |
| - targetPubKey, err := btcec.ParsePubKey(keyDesc.RawKeyBytes) |
| 225 | + targetPubKey, err := btcec.ParsePubKey(keyDesc.RawKeyBytes, btcec.S256()) |
223 | 226 | require.NoError(t.t, err)
|
224 | 227 |
|
225 | 228 | // First, try with a key descriptor that only sets the public key.
|
@@ -251,7 +254,7 @@ func runSignOutputRaw(t *harnessTest, net *lntest.NetworkHarness,
|
251 | 254 | require.NoError(t.t, err)
|
252 | 255 | require.Equal(t.t, int32(1), keyDesc.KeyLoc.KeyIndex)
|
253 | 256 |
|
254 |
| - targetPubKey, err = btcec.ParsePubKey(keyDesc.RawKeyBytes) |
| 257 | + targetPubKey, err = btcec.ParsePubKey(keyDesc.RawKeyBytes, btcec.S256()) |
255 | 258 | require.NoError(t.t, err)
|
256 | 259 |
|
257 | 260 | // First, try with a key descriptor that only sets the public key.
|
|
0 commit comments