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.

509 B
Raw Blame
import {
  createPairedE2EEFramingPolicy,
  type PairedE2EEFramingPolicy
} from '../../../src/shared/paired-e2ee-framing-policy'
import {
  hydrateE2EEV2HostLatch,
  isHostLatchedToE2EEV2,
  latchHostToE2EEV2
} from './e2ee-v2-host-latch'

export function createDirectE2EEFramingPolicy(hostPublicKeyB64: string): PairedE2EEFramingPolicy {
  return createPairedE2EEFramingPolicy(hostPublicKeyB64, {
    hydrate: hydrateE2EEV2HostLatch,
    isLatched: isHostLatchedToE2EEV2,
    latch: latchHostToE2EEV2
  })
}