您应该创建哪种类型的地址来接受付款?

时间:2017-12-18 04:10:56

标签: bitcoin coinbase-api

我正在看这个图书馆。 https://github.com/bitcoinjs/bitcoinjs-lib

有多种类型的地址可供选择:

  • 生成随机地址
  • 从SHA256哈希生成地址
  • 生成2-of-3 P2SH多重地址
  • 生成SegWit地址
  • 生成SegWit P2SH地址
  • 生成SegWit 3-of-4多重地址
  • 生成SegWit 2-of-2 P2SH多重地址

为什么有这么多选项,选择任何地址类型是否安全?

我听说coinbase还没有实现SegWit。这是否意味着如果我选择SegWit地址,我无法从Coinbase用户那里获得付款?

如果有人通过非SegWit地址将我发送到我的SegWit地址,是否会导致退回或资金丢失?

1 个答案:

答案 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.