MCPcopy
hub / github.com/mailvelope/mailvelope / getById

Function getById

src/modules/keyring.js:253–261  ·  view source on GitHub ↗
(keyringId)

Source from the content-addressed store, hash-verified

251 * @return {KeyringBase}
252 */
253export async function getById(keyringId) {
254 await keyringInitialized;
255 const keyring = keyringMap.get(keyringId);
256 if (keyring) {
257 return keyring;
258 } else {
259 throw new MvError('No keyring found for this identifier.', 'NO_KEYRING_FOR_ID');
260 }
261}
262
263/**
264 * Get all keyrings

Callers 4

test-harness.jsFile · 0.90
keyring-test.jsFile · 0.90
preVerifyKeysFunction · 0.85
syncPublicKeysFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected