Constructor
new VotingKeysGenerator(rootKeyPair, privateKeyGenerator)
- Description:
Creates a generator around a voting root key pair.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
rootKeyPair |
KeyPair | Voting root key pair. |
privateKeyGenerator |
function | Private key generator. |
Methods
generate(startEpoch, endEpoch) → {Uint8Array}
- Description:
Generates voting keys for specified epochs.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
startEpoch |
bigint | Start epoch. |
endEpoch |
bigint | End epoch. |
Returns:
Serialized voting keys.
- Type
- Uint8Array