MCPcopy
hub / github.com/mailvelope/mailvelope / createKeyring

Method createKeyring

src/client-API/client-api.js:58–60  ·  view source on GitHub ↗

* Creates a Keyring for the given identifier * @param {String} identifier - the identifier of the new keyring * @returns {Promise. } * @throws {Error} error.code = 'KEYRING_ALREADY_EXISTS' * @example * mailvelope.createKeyring('Account-ID-4711').then(function(keyring) {

(identifier)

Source from the content-addressed store, hash-verified

56 * });
57 */
58 createKeyring(identifier) {
59 return send('create-keyring', {identifier}).then(options => new Keyring(identifier, options));
60 }
61
62 /**
63 * Ascii Armored PGP Text Block

Callers 1

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected