PoA class

PoA helper with rotation policies and deterministic leader derivation.

Constructors

PoA(List<Authority> authorities)

Properties

allowlist Set<String>
final
authorities List<Authority>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAuthority(Authority a) → void
Add an authority to the allowlist (for permissioned networks).
leaderForSlot(int slot) String
Deterministic leader selection using weighted round-robin seeded by slot.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAuthority(String id) → void
Remove authority by id (soft-remove from allowlist and authority list).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited