AmateRS - The Sovereign Data Infrastructure
AmateRS is a next-generation distributed database with Fully Homomorphic Encryption (FHE) capabilities, enabling computation on encrypted data without ever exposing plaintext to servers.
This is the meta crate that re-exports all AmateRS components for convenient access.
Vision
"Reclaiming Digital Dignity through Computation in the Dark"
Like the sun goddess Amaterasu hiding in the rock cave (Iwato), data remains hidden within a robust cryptographic shell. Yet the light (computational power) emanating from it continues to illuminate the world.
AmateRS resolves the fundamental trade-off between privacy protection and data utilization.
Architecture
AmateRS consists of four core components inspired by Japanese mythology:
| Component | Origin | Role | Technology |
|---|---|---|---|
| Iwato (岩戸) | Heavenly Rock Cave | Storage Engine | LSM-Tree, WiscKey, io_uring |
| Yata (八咫鏡) | Eight-Span Mirror | Compute Engine | TFHE-rs, GPU acceleration |
| Ukehi (宇気比) | Sacred Pledge | Consensus | Raft, ZK-SNARKs |
| Musubi (結び) | The Knot | Network Layer | gRPC, QUIC, mTLS |
Re-exported Crates
This meta crate provides unified access to all AmateRS components:
| Module | Crate | Description |
|---|---|---|
core |
amaters-core | Storage, compute, types, and errors |
net |
amaters-net | gRPC services and mTLS |
cluster |
amaters-cluster | Raft consensus |
sdk |
amaters-sdk-rust | Client SDK |
Features
- Encryption in Use: Data remains encrypted during computation via TFHE (Fully Homomorphic Encryption)
- Zero Trust: Servers never see plaintext - mathematically impossible to decrypt without client keys
- Distributed Consensus: Raft-based replication with encrypted log entries
- High Performance: GPU-accelerated FHE operations, optimized LSM-Tree storage
- Post-Quantum Security: LWE-based cryptography resistant to quantum attacks
Quick Start
Installation
Add AmateRS to your Cargo.toml:
[]
= "0.1"
# Or with specific features
= { = "0.1", = ["full"] }
Basic Usage
use *;
async
Storage Engine (Iwato)
use MemoryStorage;
use StorageEngine;
use *;
let storage = new;
let key = from_str;
let value = new;
storage.put.await?;
let retrieved = storage.get.await?;
Consensus (Ukehi)
use ;
let config = new;
let node = new?;
let cmd = from_str;
let index = node.propose?;
Query Builder
use query;
use *;
let q = query
.where_clause
.eq
.build;
Feature Flags
| Flag | Description |
|---|---|
default |
No additional features |
full |
Enable all features (mtls + fhe) |
mtls |
Enable mTLS support in networking |
fhe |
Enable full FHE support with TFHE |
Use Cases
Healthcare & Genomics
- Store encrypted DNA/medical data
- Perform analysis without exposing patient information
- Enable global medical research while preserving privacy
Supply Chain Transparency
- Track CO2 emissions without revealing trade secrets
- Verify ethical sourcing without exposing supplier networks
- Maintain competitive advantage while ensuring transparency
Financial Inclusion
- Credit scoring without revealing personal transaction history
- Privacy-preserving identity verification
- Secure cross-border payments
Individual Crates
If you need only specific functionality, you can use the individual crates directly:
[]
# Core types and storage
= "0.1"
# Network layer
= "0.1"
# Consensus
= "0.1"
# Client SDK
= "0.1"
Development Status
Current Version: 0.1.0 (Production Ready)
- ✅ Core storage engine (Iwato) - LSM-Tree with WAL and compaction
- ✅ FHE compute engine (Yata) - TFHE-rs integration with predicate evaluation
- ✅ Network layer (Musubi) - gRPC with TLS/mTLS
- ✅ Rust SDK with connection pooling and retry logic
- ✅ CLI tool with full admin capabilities
- ✅ 665+ tests passing
- 🚧 Consensus layer (Ukehi) - Foundation complete, clustering in progress
- 📋 GPU acceleration (CUDA/Metal) - Planned for v0.2.0
Contributing
We welcome contributions! Please see our contribution guidelines.
Development Setup
# Clone the repository
# Run tests
# Run clippy
# Run benchmarks
# Format code
Documentation
- API Documentation - Full API reference
- Technical Whitepaper - Detailed architecture
- Vision Paper - Philosophy and use cases
- Security Model - Threat analysis
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Authors
COOLJAPAN OU (Team KitaSan) Contact: contact@cooljapan.tech Website: https://github.com/cool-japan
"We are not just building a database. We are building the Vault of Civilization."