VotingKeysGenerator⚓︎
- VotingKeysGenerator
- Generates symbol voting keys.
Constructors⚓︎
new VotingKeysGenerator()⚓︎
Creates a generator around a voting root key pair.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
rootKeyPair |
KeyPair |
Voting root key pair. |
privateKeyGenerator? |
Function |
Private key generator. |
Returns⚓︎
VotingKeysGenerator
Methods⚓︎
generate()⚓︎
- VotingKeysGenerator.generate
- Generates voting keys for specified epochs.
Parameters⚓︎
| Parameter | Type | Description |
|---|---|---|
startEpoch |
bigint |
Start epoch. |
endEpoch |
bigint |
End epoch. |
Returns⚓︎
Uint8Array
Serialized voting keys.