diff --git a/app/coinjoin/main_function.js b/app/coinjoin/main_function.js index 0e2b1ece..6ebedd50 100644 --- a/app/coinjoin/main_function.js +++ b/app/coinjoin/main_function.js @@ -10,9 +10,14 @@ const explorer = 'https://mempool.space/testnet/tx' // WIP PTG function -const TX = bitcoin.tx. -const TX = bitcoin.tx. -const TX = bitcoin.tx +const coinjoin = new bitcoin.coijoin({network}) + + +// Forward to each final participant about UTXO +const TX = bitcoin.Tx.fromWIF(network) +const TX = bitcoin.Tx.fromWIF(network) +const TX = bitcoin.Tx.FromWIF(network) + /// Alice to Carol const keyPairAlice1 = bitcoin.ECPair.fromWIF(alice[1].wif, network)