bitpay / insight-api

The bitcoin blockchain API powering Insight
https://github.com/bitpay/insight
590 stars 1.05k forks source link

Bare multi-sig support #370

Open alexanderkent opened 9 years ago

alexanderkent commented 9 years ago

How does Insight handle Multisigs tx / addresses (tx count and balance)?

Example:

https://insight.bitpay.com/address/1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F

vs.

https://blockchain.info/address/1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F

braydonf commented 8 years ago

Bare multi-sig outputs are not indexed, as there isn't an address or addresses, but public keys. It is possible to derive a pay-to-public-key hash from the public keys, but that's a different type of output script.

Note: p2sh outputs are indexed for multisig support, as there is a clear address in that case.