fromPublicKeyHash
scrypt-ts-opcat / Address / fromPublicKeyHash
Function: fromPublicKeyHash()
fromPublicKeyHash(
hash
,network
):Address
Defined in: node_modules/@opcat-labs/opcat/types/address.d.cts:189
Instantiate an address from a ripemd160 public key hash
Parameters
hash
Buffer
An instance of buffer of the hash
network
any
either a Network instance, 'livenet', or 'testnet'
Returns
A new valid and frozen instance of an Address