StakeKeyHash
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / StakeKeyHash
Class: StakeKeyHash
Extends
Constructors
new StakeKeyHash()
new StakeKeyHash(
bs
,className
):StakeKeyHash
Parameters
• bs: CanBeHash28
• className: string
= "Hash28"
Returns
Inherited from
Defined in
src/hashes/Hash28/Hash28.ts:26
Accessors
_bytes
get
protected
_bytes():Uint8Array
Returns
Uint8Array
Inherited from
Defined in
_str
get
protected
_str():string
Returns
string
Inherited from
Defined in
asBytes
get
asBytes():Uint8Array
Deprecated
use toBuffer()
instead
Returns
Uint8Array
Inherited from
Defined in
asString
get
asString():string
Deprecated
use toString()
instead
Returns
string
Inherited from
Defined in
Methods
clone()
clone():
Hash28
Returns
Inherited from
Defined in
src/hashes/Hash28/Hash28.ts:41
toBuffer()
toBuffer():
Uint8Array
Returns
Uint8Array
Inherited from
Defined in
toBytes()
toBytes():
Uint8Array
Returns
Uint8Array
Deprecated
use toBuffer()
instead
Inherited from
Defined in
toCbor()
toCbor():
CborString
Returns
CborString
Inherited from
Defined in
toCborObj()
toCborObj():
CborObj
Returns
CborObj
Inherited from
Defined in
toData()
toData(
_version
?):Data
Parameters
• _version?: ToDataVersion
Returns
Data
Inherited from
Defined in
toString()
toString():
string
Returns a string representation of an object.
Returns
string
Inherited from
Defined in
valueOf()
valueOf():
string
Returns the primitive value of the specified object.
Returns
string
Inherited from
Defined in
src/hashes/Hash28/Hash28.ts:36
fromAscii()
static
fromAscii(asciiStr
):Hash
Parameters
• asciiStr: string
Returns
Inherited from
Defined in
fromCbor()
static
fromCbor(cStr
):Hash28
Parameters
• cStr: CanBeCborString
Returns
Inherited from
Defined in
src/hashes/Hash28/Hash28.ts:46
fromCborObj()
static
fromCborObj(cObj
):Hash28
Parameters
• cObj: CborObj
Returns
Inherited from
Defined in
src/hashes/Hash28/Hash28.ts:50
isStrictInstance()
static
isStrictInstance(bs
):bs is Hash
Parameters
• bs: any
Returns
bs is Hash
Inherited from
Defined in
isValidHexValue()
static
isValidHexValue(str
):boolean
Parameters
• str: string
Returns
boolean
Inherited from
Defined in
toAscii()
static
toAscii(bStr
):string
Parameters
• bStr: Hash
Returns
string