A subclass of BTC::Address that represents an address based on the redeem script (pay-to-script-hash, P2SH).
Returns a new address by parsing a Base58Check-encoded string that must represent a valid P2SH address.
Returns a new address with a 20-byte binary hash
.
If network
is not specified, BTC::Network.default is used.
Returns a new address with a hash of the BTC::Script (so-called “redeem script”).
If network
is not specified, BTC::Network.default 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. 5 for mainnet, 196 for testnet.
Returns self
.
Returns false
.
Returns true
.
Returns BTC::Script instance that can be used in the transaction output to send bitcoins to this address.
Note: do not confuse this with the “redeem script” that is compressed within the address's hash.