Skip to content

armgit / orca

Public Imported from GitHub
0

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.

689 B
Raw Blame
import {
  createPairedE2EEClientHandshake,
  createPairedE2EELegacyChannel,
  type PairedE2EEClientHandshake
} from './paired-e2ee-client-handshake'
import { NODE_PAIRED_E2EE_PRIMITIVES } from './paired-e2ee-node-primitives'

// Fixed legacy shared key lets tests seal host frames without ECDH.
export function createFixedKeyLegacyHandshakeForTest(
  sharedKey: Uint8Array
): PairedE2EEClientHandshake {
  return {
    ...createPairedE2EEClientHandshake({
      primitives: NODE_PAIRED_E2EE_PRIMITIVES,
      hostPublicKeyB64: Buffer.alloc(32, 9).toString('base64'),
      framing: 'legacy'
    }),
    channel: createPairedE2EELegacyChannel(NODE_PAIRED_E2EE_PRIMITIVES, sharedKey)
  }
}