Initializes a new instance of the Voter class.
The kind of voter.
The voter credential.
Private
#credentialPrivate
#kindPrivate
#originalIndicates whether some other Voter is "equal to" this one.
true if objects are equals; otherwise false.
The other object to be compared.
Gets the voter kind.
If this voter is a constitutional committee, gets its credential, otherwise, undefined.
The constitutional committee credential, or undefined.
If this voter is a delegation representative, gets its credential, otherwise, undefined.
The delegation representative credential, or undefined.
If this voter is a stake pool, gets its key hash, otherwise, undefined.
The stake pool key hash.
Static
fromDeserializes the Voter from a CBOR byte array.
The new Voter instance.
The CBOR encoded Voter object.
Static
fromCreates a Voter object from the given Core Voter object.
Static
newGets a constitutional committee voter instance from a given credential.
The constitutional committee credential.
Static
newGets a delegation representative voter instance from a given credential.
The delegation Representative credential.
Static
newGets a staking pool voter instance from a given key hash.
The staking pool key hash.
Generated using TypeDoc
A voter is any participant with an eligible role who either has a direct stake or has delegated their stake, and they exercise their rights by casting votes on governance actions. The weight or influence of their vote is determined by the amount of their active stake or the stake that's been delegated to them.
Various roles in the Cardano ecosystem can participate in voting. This includes constitutional committee members, DReps (Delegation Representatives), and SPOs (Stake Pool Operators).