Constructor
new Generator(generatorId)
Parameters:
| Name | Type | Description |
|---|---|---|
generatorId | String | the internal id of the generator |
- Source
Methods
generate(confirmopt) → {Promise.<AsciiArmored, Error>}
Generate a private key
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
confirm | Promise.<undefined, Error> | <optional> | newly generate key is only persisted if Promise resolves, |
- Source
Throws:
Error
Returns:
- the newly generated key (public part)
- Type:
- Promise.<AsciiArmored, Error>