2

I've stumbled across a transition on blockchain.info where the output address was displayed even though the output address had never been used in any other transaction.

How can blockchain.info know the address when the transaction script contains only the HASH160 of the output address, not the output address itself?

1 Answer 1

1

I assume that you're talking about a Pay-to-pubkeyhash (P2PKH) transaction, which is the most common transaction type on the network at this time.

The pubkey script of a P2PKH transaction output contains the hash of the public key (what you call HASH160):
OP_DUP OP_HASH160 <PubkeyHash> OP_EQUALVERIFY OP_CHECKSIG

Said PubkeyHash can be converted into the address by prepending two zeroes and expressing it in base58check, a more human readable format.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.