Skip to main content

fromPublicKeyHash

scrypt-ts-opcat v1.0.1


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

Address

A new valid and frozen instance of an Address