Bitcoin Forum

Bitcoin => BitcoinJ => Topic started by: p3terparker on February 10, 2014, 04:42:35 PM



Title: How Are Script Pubkeys Calculated?
Post by: p3terparker on February 10, 2014, 04:42:35 PM
I can't figure out how to make a p2shAddress from a public key. Is there more than one solution per pubkey?

In Bitcoinj 35b9vsyH1KoFT5a5KtrKusaCcPLkiSo1tU is used as the script address parameter checker, but I don't know how to make this for other coins.

Also, does the starting pubkey address need to mine a block to make a script pubkey? The script Pubkey shows up when I decoderawtransaction for the transaction of a particular block, but the scriptPubkey is only in asm and hex format I need to somehow decode this into standard p2sh address form.

Thank You  ???


Title: Re: How Are Script Pubkeys Calculated?
Post by: p3terparker on February 10, 2014, 05:53:28 PM
Okay I figured it out using bitcoind help use the first command