* 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)
| 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 |
no test coverage detected