Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import nacl from 'tweetnacl'
import {
decrypt,
decryptBytes,
deriveSharedKey,
encrypt,
encryptBytes,
generateKeyPair,
publicKeyFromBase64,
publicKeyToBase64
} from './e2ee-crypto'
import { deriveMobileE2EEV2KeySchedule } from './mobile-e2ee-v2-node-key-schedule'
import type { PairedE2EEPrimitives } from './paired-e2ee-primitives'
export const NODE_PAIRED_E2EE_PRIMITIVES: PairedE2EEPrimitives = {
generateKeyPair,
deriveSharedKey,
randomBytes: (length) => nacl.randomBytes(length),
encodeBase64: (bytes) => Buffer.from(bytes).toString('base64'),
decodeBase64: (value) => Uint8Array.from(Buffer.from(value, 'base64')),
publicKeyFromBase64,
publicKeyToBase64,
sealLegacyText: encrypt,
openLegacyText: decrypt,
sealLegacyBinary: encryptBytes,
openLegacyBinary: decryptBytes,
deriveV2KeySchedule: deriveMobileE2EEV2KeySchedule
}