MCPcopy
hub / github.com/mailvelope/mailvelope / getKeyring

Method getKeyring

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

* Retrieves the Keyring for the given identifier * @param {String} identifier - the identifier of the keyring, if empty the main keyring is returned * @returns {Promise. } * @throws {Error} error.code = 'NO_KEYRING_FOR_ID'

(identifier)

Source from the content-addressed store, hash-verified

41 * @throws {Error} error.code = 'NO_KEYRING_FOR_ID'
42 */
43 getKeyring(identifier) {
44 return send('get-keyring', {identifier}).then(options => new Keyring(identifier, options));
45 }
46
47 /**
48 * Creates a Keyring for the given identifier

Callers 1

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected