Skip to main content

fromPublicKey

scrypt-ts-opcat v1.0.1


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

Address

A new valid and frozen instance of an Address