Skip to content

Latest commit

 

History

History

README.md

OneCipher Documentation

Cross-platform, cross-chain cryptographic wallet for AI Agent workloads. Fully implemented in Rust. Designed in accordance with the WalletConnect v2 protocol and the Open Wallet Standard.

Quick Start

Architecture

  • Architecture — system design, crate structure, hard gates

Protocol Specifications

Security

  • Security Model — key isolation, memory hardening, threat model, conformance requirements

Specification

OneCipher is a local-first wallet specification for encrypted wallet storage, signing operations, policy enforcement, and multi-chain account derivation.

The key words MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY in the specification documents are to be interpreted as described in RFC 2119.

Normative Core

Document Scope
Storage Format Vault directory, wallet/API key file formats, encryption
Signing Interface Core signing operations, error handling
Policy Engine Access model, policy rules, evaluation semantics
Wallet Lifecycle Creation, import, export, backup, recovery
Supported Chains Chain families, identifiers, derivation paths

Optional Profiles

Document Scope
Security Model Key isolation, memory hardening, conformance

Reference Implementation

Document Scope
Architecture Rust crate structure, design decisions
CLI Reference Command-line interface
Quick Start Getting started guide

Specification Versioning

  • Wallet file schema: oc_version = 2
  • Policy schema: version = 1

Extension Rules

  • New chain families MAY be added with a stable CAIP-2 namespace, deterministic derivation path, and address encoding rule.
  • Policy engines MAY add namespaced declarative rule types but MUST reject unknown unnamespaced rule types.
  • Files MAY include additional metadata fields; unknown fields MUST be preserved during non-destructive updates.