Skip to content

Commit a5f6450

Browse files
committed
Fix
1 parent 0883ac9 commit a5f6450

8 files changed

Lines changed: 16 additions & 17 deletions

File tree

src/bitcoin/timechain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const bitcoin = require('bitcoin');
2-
const {PublicKey,PrivateKey,TXId } = require('bitcoin-js');
2+
const {PublicKey,PrivateKey,TXId } = require('bitcoinjs-lib');
33

44
const NETWORK = bitcoin.networks.bitcoin;
55

src/dlc/data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Install BDK and LDK using npm or yarn
2-
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoin-js');
2+
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoinjs-lib');
33
const { ChannelManager, PaymentStatus, Invoice } = require('ldk-node-js');
44

55

66
// Mainnet or Testnet
77
const NETWORK = bitcoin.networks.bitcoin;
88

9-
// Set up BDK wallet
9+
// Set up Bitcoin wallet
1010
const wallet = new Wallet('testnet', 'path/to/wallet.dat');
1111

1212
// Connect to Electrum server

src/dlc/event.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoin-js');
1+
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoinjs-lib');
22
const { ChannelManager, PaymentStatus, Invoice } = require('ldk-node-js');
33

44

55
// Mainnet or Testnet
66
const NETWORK = bitcoin.networks.bitcoin;
77

8-
// Set up BDK wallet
8+
// Set up Bitcoin wallet
99
const wallet = new Wallet('testnet', 'path/to/wallet.dat');
1010

1111
// Connect to Electrum server

src/dlc/exc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoin-js');
1+
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoinjs-lib');
22
const { ChannelManager, PaymentStatus, Invoice } = require('ldk-node-js');
33
const bitcoin = require('bitcoin-networks');
44

55
// Mainnet or Testnet
66
const NETWORK = bitcoin.networks.bitcoin;
77

8-
// Set up BDK wallet
8+
// Set up Bitcoin wallet
99
const wallet = new Wallet('testnet', 'path/to/wallet.dat');
1010

1111
// Connect to Electrum server

src/dlc/lightning_channel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Install BDK and LDK using npm or yarn
2-
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoin-jsk);
2+
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoinjs-lib');
33
const { ChannelManager, PaymentStatus, Invoice } = require('ldk-node-js');
44

55

66
// Mainnet or Testnet
77
const NETWORK = bitcoin.networks.bitcoin;
88

9-
// Set up BDK wallet
9+
// Set up Biitcoin wallet
1010
const wallet = new Wallet('testnet', 'path/to/wallet.dat');
1111

1212
// Connect to Electrum server

src/dlc/oracle/oracle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const bitcoin = require('bitcoin-js');
1+
const bitcoin = require('bitcoinjs-lib');
22
const ldk = require('ldk-garbagecollected');
33

44

src/dlc/sign.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
const BDK = require('bdk-ffi');
2-
const LDK = require('ldk-garbagecollected');
1+
2+
// Install Bitcoin and LDK using npm or yarn
3+
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoin-js');
4+
const { ChannelManager, PaymentStatus, Invoice } = require('ldk-garbagecollected');
35

46
// Mainnet or Testnet
57
const NETWORK = bitcoin.networks.bitcoin; // You can switch to testnet, regtest or signet
68

7-
// Install BDK and LDK using npm or yarn
8-
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoin-js');
9-
const { ChannelManager, PaymentStatus, Invoice } = require('ldk-node-js');
109

1110
// Set up BDK wallet
1211
const wallet = new Wallet('testnet', 'path/to/wallet.dat');

src/dlc/transactions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const { ElectrumNetwork, Wallet, Psbt } = require('bitcoin-js');
2-
const { ChannelManager, PaymentStatus, Invoice } = require('ldk-node-js');
2+
const { ChannelManager, PaymentStatus, Invoice } = require('ldk-garbagecollected');
33

44

55
// Mainnet or Testnet
66
const NETWORK = bitcoin.networks.bitcoin; // Switch to bitcoin.networks.testnet for testnet
77

8-
// Set up BDK wallet
8+
// Set up Bitcoin wallet
99
const wallet = new Wallet('testnet', 'path/to/wallet.dat');
1010

1111
// Connect to Electrum server

0 commit comments

Comments
 (0)