From 079bb510d01977dd0c76862acdf9d1ee02aad716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Tue, 16 Jan 2024 06:39:44 -0300 Subject: [PATCH] Replace P2PKH to P2TR (Taproot) Replacing for Taproot! More privacy is coming to Coinjoin! :) --- app/coinjoin/main_function.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/coinjoin/main_function.js b/app/coinjoin/main_function.js index 7c3e3dc1..a875f494 100644 --- a/app/coinjoin/main_function.js +++ b/app/coinjoin/main_function.js @@ -42,27 +42,27 @@ const psbt = new bitcoin.Psbt({network}) nonWitnessUtxo }) .addOutput({ - address: bob[1].p2pkh, + address: bob[1].p2tr, value: 2e7, }) .addOutput({ - address: dave[1].p2pkh, + address: dave[1].p2tr, value: 2e7, }) .addOutput({ - address: mallory[2].p2pkh, + address: mallory[2].p2tr, value: 2e7, }) .addOutput({ - address: alice[2].p2pkh, + address: alice[2].p2tr, value: 2e7, }) .addOutput({ - address: eve[1].p2pkh, + address: eve[1].p2tr, value: 5e6 - 5e4, }) .addOutput({ - address: mallory[1].p2pkh, + address: mallory[1].p2tr, value: 1e7 - 5e4, })