Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Replace P2PKH to P2TR (Taproot)
Browse files Browse the repository at this point in the history
Replacing for Taproot! 

More privacy is coming to Coinjoin! :)
  • Loading branch information
22388o authored Jan 16, 2024
1 parent 2554b10 commit 079bb51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/coinjoin/main_function.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})

Expand Down

0 comments on commit 079bb51

Please sign in to comment.