Generator

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

Constructor

new Generator(generatorId)

Parameters:
NameTypeDescription
generatorIdString

the internal id of the generator

Methods

generate(confirmopt) → {Promise.<AsciiArmored, Error>}

Generate a private key

Parameters:
NameTypeAttributesDescription
confirmPromise.<undefined, Error><optional>

newly generate key is only persisted if Promise resolves,
in the reject or timeout case the generated key is rejected

Throws:
Error
Returns:
  • the newly generated key (public part)
Type: 
Promise.<AsciiArmored, Error>