keep-network / local-setup

Allow to easily set up tBTC and Keep locally for development and test purposes.
MIT License
8 stars 16 forks source link

Support P2WSH by bitcoind-wallet getNewAddress function #116

Closed nkuba closed 2 years ago

nkuba commented 3 years ago

getNewAddress function is now able to generate P2WSH address.

beaurancourt commented 2 years ago

Works for me!

Just tested it out in the command line:

❯ bitcoind-wallet getNewAddress p2wsh
(node:85945) ExperimentalWarning: The ESM module loader is experimental.
(node:85945) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
bcrt1qdmd4w9grunkvwn4ts2vp66cnfk3szl485z4wddqp2pv2ewypvq5q5su5q7

and the code looks fine. May as well get this merged in :tada: