AuxiliaryDataHash
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / AuxiliaryDataHash
Class: AuxiliaryDataHash
Extends
Constructors
new AuxiliaryDataHash()
new AuxiliaryDataHash(
bs
,className
):AuxiliaryDataHash
Parameters
• bs: string
| Uint8Array
| Hash32
• className: string
= "Hash32"
Returns
Inherited from
Defined in
src/hashes/Hash32/Hash32.ts:25
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():
AuxiliaryDataHash
Returns
Overrides
Defined in
src/hashes/Hash32/AuxiliaryDataHash.ts:5
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
fromAscii()
static
fromAscii(asciiStr
):Hash
Parameters
• asciiStr: string
Returns
Inherited from
Defined in
fromCbor()
static
fromCbor(cStr
):Hash32
Parameters
• cStr: CanBeCborString
Returns
Inherited from
Defined in
src/hashes/Hash32/Hash32.ts:35
fromCborObj()
static
fromCborObj(cObj
):Hash32
Parameters
• cObj: CborObj
Returns
Inherited from
Defined in
src/hashes/Hash32/Hash32.ts:39
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