Helios API/ API Reference/ Classes/

PubKey

Hierarchy

Index

Constructors

constructor

new PubKey(props)

Parameters

NameType
propsPubKeyProps

Overrides

HeliosData.constructor

Accessors

bytes

get bytes(): number[]

Returns

number[]

hex

get hex(): string

Hexadecimal representation.

Returns

string

pubKeyHash

get pubKeyHash(): PubKeyHash

Can also be used as a Stake key hash

Returns

PubKeyHash

Methods

dump

dump(): string

Returns

string

hash

hash(): number[]

Returns

number[]

isDummy

isDummy(): boolean

Returns

boolean

toCbor

toCbor(): number[]

Returns

number[]

Inherited from

HeliosData.toCbor

toCborHex

toCborHex(): string

Returns

string

Inherited from

HeliosData.toCborHex

toSchemaJson

toSchemaJson(): string

Returns

string

Inherited from

HeliosData.toSchemaJson

dummy

Static dummy(): PubKey

Returns

PubKey

fromCbor

Static fromCbor(bytes): PubKey

Parameters

NameType
bytesnumber[]

Returns

PubKey

fromProps

Static fromProps(props): PubKey

Parameters

NameType
propsPubKey | PubKeyProps

Returns

PubKey

fromUplcCbor

Static fromUplcCbor(bytes): PubKey

Parameters

NameType
bytesstring | number[]

Returns

PubKey

fromUplcData

Static fromUplcData(data): PubKey

Parameters

NameType
dataUplcData

Returns

PubKey