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