new Generator(generatorId)
Parameters:
Name | Type | Description |
---|---|---|
generatorId |
String | the internal id of the generator |
- Source:
Methods
-
generate( [confirm])
-
Generate a private key
Parameters:
Name Type Argument Description confirm
Promise.<undefined, Error> <optional>
newly generate key is only persisted if Promise resolves,
in the reject or timeout case the generated key is rejected- Source:
Throws:
ErrorReturns:
- the newly generated key (public part)
- Type
- Promise.<AsciiArmored, Error>