/** Enrollment fingerprint of an agent public key: SHA-256 hex (pinned by the browser for E2E TOFU, §4.4). */
import { createHash } from 'node:crypto'

export function fingerprint(agentPubkey: Uint8Array): string {
  return createHash('sha256').update(agentPubkey).digest('hex')
}
