libbitcoin / libbitcoin-explorer

Bitcoin Command Line Tool
Other
599 stars 176 forks source link

Add support for bip173 (segwit payment addresses). #520

Closed eMosbat closed 4 years ago

eMosbat commented 6 years ago

how can I generates segwit address using bx tool?

evoskuil commented 6 years ago

Which type of address are you referring to? https://bitcoincore.org/en/segwit_wallet_dev

eMosbat commented 6 years ago

I need to generate p2wpkh addresses (if I am correct) that starts with bc from a zpub master key. need a tool like bx to do it or a php script.

evoskuil commented 6 years ago

So bech32 address generation? This is not currently supported in libbitcoin/bx. I expect it within a couple months however. We are just shipping node/server segwit support today.

eMosbat commented 6 years ago

any good news on this? :>

evoskuil commented 6 years ago

I just merged a libbitcoin pull request for the base32 encoding. I know someone is working on witness_addresss as well. Once that is done it will be simple to drop in bx commands. So some progress.

bitdaric commented 5 years ago

I am interested too. or maybe give me a way to convert current address with a simple tool?

anonproject commented 4 years ago

Would you please clarify if that was merged in the 4.0 Milestone? I am compiling the latest master now ...

evoskuil commented 4 years ago

It has not been implemented and the v4 milestone is not complete.

thecodefactory commented 4 years ago

In master, see bx ec-to-witness and bx witness-to-key commands.

thecodefactory commented 4 years ago

https://github.com/libbitcoin/libbitcoin-explorer/pull/627 https://github.com/libbitcoin/libbitcoin-system/pull/1118

evoskuil commented 4 years ago

Ah, I was thinking this was the issue for support of witness txs. Is this supported with the new commands?

thecodefactory commented 4 years ago

The BIP173 address parsing/generating is complete. Witness tx construction isn't convenient yet though (i.e. not explicitly supported). That is to be done, and should probably be a separate issue.

eMosbat commented 4 years ago

In master, see bx ec-to-witness and bx witness-to-key commands.

could you please upload exe version?

thecodefactory commented 4 years ago

In master, see bx ec-to-witness and bx witness-to-key commands.

could you please upload exe version?

Sorry, I don't have a Windows environment.