A subclass of BTC::Address that represents an address based on the public key (pay-to-public-key-hash, P2PKH).
Returns a new address by parsing a Base58Check-encoded string that must represent a valid P2PKH address.
Returns a new address with a 20-byte binary string hash
.
If network
is not specified, BTC::Network.default is used.
Returns a new address with a hash of the binary string public_key
.
If network
is not specified, BTC::Network.default is used.
Returns a new address with a hash of the key.public_key
.
If network
is not specified, key.network
is used.
Returns a 20-byte binary hash stored within the address.
Returns string representation of the address in Base58Check encoding.
Returns a BTC::Network instance based on the version prefix of the address (mainnet or testnet).
Returns an integer value of the one-byte prefix of the address. 0 for mainnet, 111 for testnet.
Returns self
.
Returns true
.
Returns false
.
Returns BTC::Script instance that can be used in the transaction output to send bitcoins to this address.