VRFKeyHash
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / VRFKeyHash
Class: VRFKeyHash
Extends
Constructors
new VRFKeyHash()
new VRFKeyHash(
bs,className):VRFKeyHash
Parameters
• bs: string | Uint8Array | Hash32
• className: string = "Hash32"
Returns
Inherited from
Defined in
src/hashes/Hash32/Hash32.ts:25
Accessors
_bytes
getprotected_bytes():Uint8Array
Returns
Uint8Array
Inherited from
Defined in
_str
getprotected_str():string
Returns
string
Inherited from
Defined in
asBytes
getasBytes():Uint8Array
Deprecated
use toBuffer() instead
Returns
Uint8Array
Inherited from
Defined in
asString
getasString():string
Deprecated
use toString() instead
Returns
string
Inherited from
Defined in
Methods
clone()
clone():
Hash
Returns
Inherited from
Defined in
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()
staticfromAscii(asciiStr):Hash
Parameters
• asciiStr: string
Returns
Inherited from
Defined in
fromCbor()
staticfromCbor(cStr):Hash32
Parameters
• cStr: CanBeCborString
Returns
Inherited from
Defined in
src/hashes/Hash32/Hash32.ts:35
fromCborObj()
staticfromCborObj(cObj):Hash32
Parameters
• cObj: CborObj
Returns
Inherited from
Defined in
src/hashes/Hash32/Hash32.ts:39
isStrictInstance()
staticisStrictInstance(bs):bs is Hash
Parameters
• bs: any
Returns
bs is Hash
Inherited from
Defined in
isValidHexValue()
staticisValidHexValue(str):boolean
Parameters
• str: string
Returns
boolean
Inherited from
Defined in
toAscii()
statictoAscii(bStr):string
Parameters
• bStr: Hash
Returns
string