Class: Generator

Generator

Not accessible, instance can be obtained using Keyring#createKeyGenContainer.


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:
Error
Returns:
  • the newly generated key (public part)
Type
Promise.<AsciiArmored, Error>