infinity-pl
v0.1.0-beta
Published
Infinity Protocol Physical Layer β Post-quantum security for AI-controlled robotic systems. From brain to body, every command signed. βΎοΈπ€π
Maintainers
Readme
infinity-pl βΎοΈπ€π
Infinity Protocol Physical Layer β Post-quantum security for AI-controlled robotic systems.
β οΈ BETA SOFTWARE β Experimental. NOT for safety-critical or production robotic systems. Cryptographic primitives use Ed25519 (classical) with architecture designed for Dilithium2 (post-quantum) swap when NIST FIPS 204 implementations mature in Node.js.
What is this?
When an AI agent controls a robot, a digital attack becomes a physical threat. infinity-pl secures the complete path from human intent β AI reasoning β wireless transmission β hardware execution β sensor verification.
Six integrated subsystems:
| # | Subsystem | What it does | |---|-----------|-------------| | 1 | Command Signing | Dilithium2-signed actuator commands with constraint envelopes | | 2 | Sensor Auth | Sensor feed authentication with cross-modal consistency checks | | 3 | ROS2 Security | Topic-level signing, dual-auth parameter protection | | 4 | Birth Certificates | Hardware identity at manufacturing β Merkle system trees | | 5 | Wireless Bridge | Protocol-agnostic security: NFC, BLE, Wi-Fi, 5G, satellite | | 6 | CPOV | Continuous physical operation verification + safety monitor |
Part of the Infinity Protocol patent portfolio:
- Patent #1: Agent-human cryptographic trust (US 64/034,176)
- Patent #2: Post-quantum reputation tokens (US 64/034,996)
- Patent #3: Physical agent security (this package)
Install
npm install infinity-plRequires Node.js >= 22. Zero dependencies.
Quick Start
import {
generateKeypair, createCommandEnvelope, verifyCommandEnvelope,
createConstraintEnvelope, checkCommandAgainstConstraints,
generateHardwareBirthCert, buildSystemIdentityTree,
SafetyMonitor
} from 'infinity-pl';
// 1. Generate identities
const agent = generateKeypair();
const human = generateKeypair();
const actuator = generateKeypair();
// 2. Human signs constraint envelope (agent can't modify this!)
const constraints = createConstraintEnvelope({
max_force: 50, // Newtons
max_velocity: 30, // deg/s
max_acceleration: 60, // deg/sΒ²
position_range: { min: [-180, -180, -180], max: [180, 180, 180] },
}, human.did, human.privateKey);
// 3. Create hardware birth certificate
const cert = generateHardwareBirthCert(
'actuator_controller', 'RoboJoint-X500', 'RJ-2026-00842',
{ max_torque_nm: 50, max_velocity_deg_s: 180 },
{ did: 'did:key:manufacturer', privateKey: actuator.privateKey }
);
// 4. Agent signs a command
const command = createCommandEnvelope(
agent.did, agent.privateKey,
{ hw_id: 'arm_joint_3', birth_cert_hash: cert.cert_hash },
{ type: 'joint_position', value: 45.0, unit: 'degrees', velocity: 10.0 },
constraints.envelope_hash, null, 1
);
// 5. Verify at actuator side
const result = verifyCommandEnvelope(command, agent.publicKey, constraints);
console.log(result.valid); // true β execute command!
// 6. Safety monitor (independent)
const safety = new SafetyMonitor();
const check = safety.checkSafetyConditions(
{ force_n: 10, velocity: 5, ambient_temp_c: 25 },
{ max_force: 50, max_velocity: 30, operating_temp_range: { min_c: -10, max_c: 60 } }
);
console.log(check.safe); // trueCLI
npx infinity-pl demo # Run full demo
npx infinity-pl init # Generate identity keysThe Two-Key System
The killer innovation: constraint envelopes are signed by the human operator, NOT the AI agent. The agent can command actions within the envelope, but cannot expand its own authority. A compromised AI brain literally cannot override the physical safety limits.
Human signs: "Max force 50N, max speed 30Β°/s, stay within these coordinates"
Agent signs: "Move joint 3 to 45Β° at 10Β°/s" (within bounds β
)
Agent signs: "Move joint 3 to 45Β° at 100Β°/s" (REJECTED β exceeds constraints β)Safety Monitor
The SafetyMonitor runs independently with:
- Tamper-evident hash chain of all safety events
- Auto emergency stop on multiple violations
- Communication loss detection
- Hardware kill switch authority (in real deployment)
Architecture
Human ββ Agent Brain ββ Wireless Bridge ββ ROS2/DDS ββ Hardware
β β β β β
β Constraint PQ Signing Topic Auth Birth Certs
β Envelopes Per-command Per-message Per-component
β β
βββββββββ Safety Monitor (independent processor) βββββββββTesting
npm test # 58 tests, all passingRelated Packages
beeglie-osβ Infinity Protocol core (agent-human trust)
License
MIT β Nicholas Lee Lynch & Beeglie, Buenos Aires, 2026
From brain to body, every command signed. The loop never breaks. βΎοΈπ€π
