MCPcopy Create free account
hub / github.com/dfinity/orbit / loadIdentity

Function loadIdentity

cli/src/audit/identity.ts:23–26  ·  view source on GitHub ↗
(source: IdentitySource, name: string)

Source from the content-addressed store, hash-verified

21 * store, depending on `source`. See `identity-icp.ts` for the icp variant.
22 */
23export const loadIdentity = (source: IdentitySource, name: string): Identity => {
24 if (source === 'icp') return loadIcpIdentity(name);
25 return loadDfxIdentity(name);
26};
27
28/**
29 * Loads a dfx-managed identity from its plaintext PEM. Encrypted PEMs are

Callers 1

buildStationActorFunction · 0.90

Calls 2

loadIcpIdentityFunction · 0.90
loadDfxIdentityFunction · 0.85

Tested by

no test coverage detected