MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / generatePrivateKey

Function generatePrivateKey

cli/src/cache/driveCryptoCacheAdapter.test.ts:168–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166});
167
168async function generatePrivateKey() {
169 return CryptoProxy.generateKey({
170 userIDs: [{ name: 'DriveCryptoCacheAdapter test' }],
171 type: 'ecc',
172 curve: 'ed25519Legacy',
173 });
174}
175
176async function generateSessionKey(recipientPrivateKey: Awaited<ReturnType<typeof generatePrivateKey>>) {
177 const publicKey = await CryptoProxy.importPublicKey({

Callers 1

Calls 1

generateKeyMethod · 0.45

Tested by

no test coverage detected