DRepKeyHash
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / DRepKeyHash
Class: DRepKeyHash
Implements
Constructors
new DRepKeyHash()
new DRepKeyHash(
__namedParameters
):DRepKeyHash
Parameters
• __namedParameters: IDRepKeyHash
Returns
Defined in
src/governance/DRep/DRepKeyHash.ts:26
Properties
drepType
readonly
drepType:KeyHash
Implementation of
Defined in
src/governance/DRep/DRepKeyHash.ts:23
hash
readonly
hash:PubKeyHash
Implementation of
Defined in
src/governance/DRep/DRepKeyHash.ts:24
Methods
toCbor()
toCbor():
CborString
Returns
CborString
Defined in
src/governance/DRep/DRepKeyHash.ts:49
toCborObj()
toCborObj():
CborArray
Returns
CborArray
Defined in
src/governance/DRep/DRepKeyHash.ts:53
toData()
toData(
version
?):DataConstr
Parameters
• version?: ToDataVersion
Returns
DataConstr
Implementation of
Defined in
src/governance/DRep/DRepKeyHash.ts:36
toJson()
toJson():
object
Returns
object
drepType
drepType:
string
hash
hash:
string
Defined in
src/governance/DRep/DRepKeyHash.ts:76
fromCborObj()
static
fromCborObj(cbor
):DRepKeyHash
Parameters
• cbor: CborObj