我正在看这个图书馆。 https://github.com/bitcoinjs/bitcoinjs-lib
有多种类型的地址可供选择:
为什么有这么多选项,选择任何地址类型是否安全?
我听说coinbase还没有实现SegWit。这是否意味着如果我选择SegWit地址,我无法从Coinbase用户那里获得付款?
如果有人通过非SegWit地址将我发送到我的SegWit地址,是否会导致退回或资金丢失?
答案 0 :(得分:2)
It is safe for you to choose any of those addresses however they all work slightly differently.
Bitcoin-core has adopted Segwit and fortunately Segwit is backwards compatible so wallets that are segwit can still transfer funds to wallets that are not segwit enabled.
You will still be able to get coins from non-segwit addresses however there is a chance they may have to pay higher transactional fees to have their purchases included in an earlier block.
Technical justification:
Segwit P2SH (Pay to Script Hash), multisig and Segwit must all support the original bitcoin transaction format of Version/txins/txouts/nLockTime
allowing wallets on the same Blockchain to interact regardless of being a variation of Segwit or not.