MCPcopy Create free account
hub / github.com/WICG/webpackage / parseKey

Function parseKey

js/sign/src/cli-dump-id.ts:22–30  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

20}
21
22async function parseKey(filePath: string): Promise<KeyObject> {
23 try {
24 return parsePublicKey(filePath);
25 } catch {
26 // Suppress this error.
27 }
28
29 return await parseMaybeEncryptedKeyFromFile(filePath);
30}
31
32function readOptions() {
33 return program

Callers 1

mainFunction · 0.85

Calls 2

parsePublicKeyFunction · 0.85

Tested by

no test coverage detected