MCPcopy
hub / github.com/mailvelope/mailvelope / hasUsablePrivateKey

Function hasUsablePrivateKey

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

Source from the content-addressed store, hash-verified

553 * @return {Boolean}
554 */
555export async function hasUsablePrivateKey(keyringId) {
556 await keyringInitialized;
557 return getPreferredKeyringQueue(keyringId).some(keyring => keyring.hasPrivateKey());
558}
559
560/**
561 * Check if provided keyring is created by Mailvelope client-API

Callers 1

constructorMethod · 0.90

Calls 2

getPreferredKeyringQueueFunction · 0.85
hasPrivateKeyMethod · 0.45

Tested by

no test coverage detected