Bitcoin address

 

Bitcoin address 分类初探

Background

今天在研究blocksci的时候,发现了一个tag叫EquivAddress,有两种address equivalence: type equivalence, script equivalence。

  • Type Equivalence

1) Pay to pubkey

2) Pay to pubkeyhash

3) pay to witness pubkey hash

require knowledge of a given pubkey

pay to scripthash, pay to witness scripthash

require knowledge of a given spending script

  • Script Equivalence

Multisig address

还有一种情况被列成non standard,其中的头号代表就是 一个例子

于是了解了一下为什么会出现Unable to decode output address这个问题。参考stackexchange上面的一个回答。