Skip to main content

DRepKeyHash

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / DRepKeyHash

Class: DRepKeyHash

Implements

Constructors

new DRepKeyHash()

new DRepKeyHash(__namedParameters): DRepKeyHash

Parameters

__namedParameters: IDRepKeyHash

Returns

DRepKeyHash

Defined in

src/governance/DRep/DRepKeyHash.ts:26

Properties

drepType

readonly drepType: KeyHash

Implementation of

IDRep.drepType

Defined in

src/governance/DRep/DRepKeyHash.ts:23


hash

readonly hash: PubKeyHash

Implementation of

IDRepKeyHash.hash

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

IDRep.toData

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

Returns

DRepKeyHash

Defined in

src/governance/DRep/DRepKeyHash.ts:61