Hash
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / Hash
Class: Hash
Extended by
Implements
Cloneable
<Hash
>ToCbor
ToData
Constructors
new Hash()
new Hash(
bs
):Hash
Parameters
• bs: string
| Uint8Array
Returns
Defined in
Accessors
_bytes
get
protected
_bytes():Uint8Array
Returns
Uint8Array
Defined in
_str
get
protected
_str():string
Returns
string
Defined in
asBytes
get
asBytes():Uint8Array
Deprecated
use toBuffer()
instead
Returns
Uint8Array
Defined in
asString
get
asString():string
Deprecated
use toString()
instead
Returns
string
Defined in
Methods
clone()
clone():
Hash
Returns
Implementation of
Cloneable.clone
Defined in
toBuffer()
toBuffer():
Uint8Array
Returns
Uint8Array
Defined in
toBytes()
toBytes():
Uint8Array
Returns
Uint8Array
Deprecated
use toBuffer()
instead
Defined in
toCbor()
toCbor():
CborString
Returns
CborString
Implementation of
ToCbor.toCbor
Defined in
toCborObj()
toCborObj():
CborObj
Returns
CborObj
Implementation of
ToCbor.toCborObj
Defined in
toData()
toData(
_version
?):Data
Parameters
• _version?: ToDataVersion
Returns
Data
Implementation of
ToData.toData
Defined in
toString()
toString():
string
Returns a string representation of an object.
Returns
string
Defined in
fromAscii()
static
fromAscii(asciiStr
):Hash
Parameters
• asciiStr: string
Returns
Defined in
fromCbor()
static
fromCbor(cStr
):Hash
Parameters
• cStr: CanBeCborString
Returns
Defined in
fromCborObj()
static
fromCborObj(cObj
):Hash
Parameters
• cObj: CborObj
Returns
Defined in
isStrictInstance()
static
isStrictInstance(bs
):bs is Hash
Parameters
• bs: any
Returns
bs is Hash
Defined in
isValidHexValue()
static
isValidHexValue(str
):boolean
Parameters
• str: string
Returns
boolean
Defined in
toAscii()
static
toAscii(bStr
):string
Parameters
• bStr: Hash
Returns
string