Spike

Quantum-safe, quantum-enhanced autonomous DeFi AI agent on 0G Network

Spike

Created At

Open Agents

Project Description

Spike combines post-quantum cryptography (PQC), Qiskit-powered portfolio optimization, and 0G's decentralized storage + compute layers to deploy self-rebalancing on-chain agents whose configurations are Kyber-encrypted, Dilithium-signed, and stored on 0G Storage — never held in plaintext.

How it's Made

Key Design Decisions Post-Quantum Cryptography Dilithium3 (NIST FIPS 204) signs every agent action before it is written on-chain Kyber-1024 (NIST FIPS 203) + AES-256-GCM encrypts agent configs before upload to 0G Storage Both algorithms run as liboqs WASM in the browser — private keys never leave the client in plaintext Key fingerprints are registered on PQCKeyRegistry.sol; the agent checks registration before executing any trade Quantum-Enhanced Optimization services/quantum runs Qiskit + Aer simulator locally — no cloud account required Portfolio weights use classical scipy Markowitz (SLSQP) with an efficient frontier calculation VaR-95 / CVaR-99 are estimated via Iterative Amplitude Estimation (StatevectorSampler), falling back to Monte Carlo if the circuit fails Rebalance trades are selected by a greedy cost-minimizing algorithm Optimization results are cached in 0G Storage KV for 6 hours, keyed by portfolio hash — the agent skips re-running if drift is below driftThreshold 0G Network Integration 0G Storage (@0gfoundation/0g-storage-ts-sdk): stores Kyber-encrypted agent configs and appends immutable audit logs 0G Compute (@0glabs/0g-serving-broker): runs inferMarketRegime to classify the current market as bull / bear / sideways / volatile 0G Chain (EVM, chainId 16602 testnet / 16661 mainnet): PQCKeyRegistry and AgentRegistry smart contracts

background image mobile

Join the mailing list

Get the latest news and updates

Spike | ETHGlobal