Private key: e8c8fffa81ac18a817fe474a9024d8082341eca44ff123732c0ad7651d0e314a
- hex => sha256 and ripemd160
- address prefixes and versions
- bitcoin script opcodes
- bitcoin script IDE (note: broken)
- hex => base58 + address validator
Guide: https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses
public: 028b37ac2f0c0a9e80cf9d8a70dac673430547826ea9d7aee101104da280a57f82
sha256: 0cefa209ee028af53206fa2eaba787275e331fa695b0873b8dd9bf539caa718f
ripemd160 (pubkey hash): ba05a8de3a329346365a7050008361ae9d7eaa90
locking script: OP_DUP OP_HASH160 ba05a8de3a329346365a7050008361ae9d7eaa90 OP_EQUALVERIFY OP_CHECKSIG
locking script hex: 76a914ba05a8de3a329346365a7050008361ae9d7eaa9088ac
// base58check
add version (0x00): 00ba05a8de3a329346365a7050008361ae9d7eaa90
sha256: 5295f237adda4fb621a47f86f552ea87ee09d4e85b5b4d14ae92163e2ad5b8b0
sha256 (x2): 0f68a0f7986d27f2cfdfc2092a42904de725853a934d3f665e5b28922a3fc141
checksum: 0f68a0f7
v + checksum: 00ba05a8de3a329346365a7050008361ae9d7eaa900f68a0f7 (25-byte binary address)
base58 (address): 1HxbTvKCZMak4rdzVx5DT8LTtT5i1ph1CA
Info: https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki
redeem script hex: 76a914ba05a8de3a329346365a7050008361ae9d7eaa9088ac (P2PKH locking script)
sha256: d123102127c45ccaa857d862b0efba43fffeb091b607e16185514e84a1a58b92
ripemd160: df1799eac36eb9da5ef8fc973a94786ac0647933
locking script: OP_HASH160 df1799eac36eb9da5ef8fc973a94786ac0647933 OP_EQUAL
// base58check
add version (0x05) 05df1799eac36eb9da5ef8fc973a94786ac0647933
sha256: 6443d3760d51c722f6c7119912a44652c4bd0544dd6589b74f84c0f0b763da08
sha256 (x2): 08110e1763a7ea4425ef6dcf7e83bcc8dffcf1d4021d7d81380fb65d8cdc448f
checksum: 08110e17
v + checksum: 05df1799eac36eb9da5ef8fc973a94786ac064793308110e17
base58 (address): 3N2ctAWRAfgHPLVAm2B6VPvdLnBKZZaSJJ
hash160 (pubkey hash): ba05a8de3a329346365a7050008361ae9d7eaa90
locking script ASM: OP_0 ba05a8de3a329346365a7050008361ae9d7eaa90
locking script hex: 0014ba05a8de3a329346365a7050008361ae9d7eaa90
TODO: address (bech32?)
Guide: https://bitcoincore.org/en/segwit_wallet_dev#creation-of-p2sh-p2wpkh-address
redeem script hex: 0014ba05a8de3a329346365a7050008361ae9d7eaa90 (P2WPKH locking script)
sha256: e19f0aa7af3ee180ab2bdcf20af0ef88d75f6b438fad77f0131b3074e2c5d529
ripemd160: 4a20082ab3893e952aa82d4ec65bbd43b65b0513
locking script: OP_HASH160 4a20082ab3893e952aa82d4ec65bbd43b65b0513 OP_EQUAL
// base58check
add version (0x05) 054a20082ab3893e952aa82d4ec65bbd43b65b0513
sha256: 9fe747f7934c0b8b41e4c542842a98288c0418df32302b0f84c7655f18805fee
sha256 (x2): 7d728b895eb26589061769d6f63bef111675088223e34ac43625d21b8c5aea0f
checksum: 7d728b89
v + checksum: 054a20082ab3893e952aa82d4ec65bbd43b65b05137d728b89
base58 (address): 38SxJMXcPxvCesEijduRgJPwG2JqBjp8ba