Helios API/ API Reference/ Classes/
PubKey
Hierarchy
-
↳
PubKey
Index
Constructors
constructor
• new PubKey(props
)
Parameters
Name | Type |
---|---|
props | PubKeyProps |
Overrides
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
Methods
dump
▸ dump(): string
Returns
string
hash
▸ hash(): number
[]
Returns
number
[]
isDummy
▸ isDummy(): boolean
Returns
boolean
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toSchemaJson
▸ toSchemaJson(): string
Returns
string
Inherited from
dummy
▸ Static
dummy(): PubKey
Returns
fromCbor
▸ Static
fromCbor(bytes
): PubKey
Parameters
Name | Type |
---|---|
bytes | number [] |
Returns
fromProps
▸ Static
fromProps(props
): PubKey
Parameters
Name | Type |
---|---|
props | PubKey | PubKeyProps |
Returns
fromUplcCbor
▸ Static
fromUplcCbor(bytes
): PubKey
Parameters
Name | Type |
---|---|
bytes | string | number [] |
Returns
fromUplcData
▸ Static
fromUplcData(data
): PubKey
Parameters
Name | Type |
---|---|
data | UplcData |