MetaMUI Crypto Primitives
Cross-platform cryptographic library with quantum-resistant algorithms
48
Algorithms
10
Platforms
NIST + KPQC
Standards Coverage
100%
Pure Implementations
Quick Start
Clone the repository and build from source for your platform:
git clone https://github.com/SovereignWallet-Network/metamui-crypto-primitives.git
cd metamui-crypto-primitives
# Python
cd metamui-crypto-python
python3 -m pytest tests/ -v
# Rust
cd metamui-crypto-rust
cargo build --release
# TypeScript/JavaScript
cd metamui-crypto-typescript
npm install && npm run build
# Swift
cd metamui-crypto-swift
swift build
# Kotlin
cd metamui-crypto-kotlin
./gradlew build
# Go
cd metamui-crypto-go
go build ./...
# C
cd metamui-crypto-c
cmake -B build && cmake --build build
# C#
cd metamui-crypto-csharp
dotnet build
# Java
cd metamui-crypto-java
mvn compile
Key Features
- Post-Quantum Ready: NIST PQC (ML-KEM, ML-DSA, SLH-DSA, Falcon) and KPQC standards
- Cross-Platform: Consistent API across 10 platforms
- Pure Implementations: No external crypto dependencies
- Security First: Constant-time operations, secure memory handling
- Comprehensive: 48 algorithms covering signatures, KEM, encryption, hashing, and key derivation
Documentation
Getting Started
Installation guides and quick start tutorials
API Reference
Complete API documentation for all platforms
Security API
Security-focused API documentation
Algorithms
Detailed algorithm specifications
Security Features
- Constant-time implementations - Timing attack resistance
- Secure memory clearing - Automatic sanitization of sensitive data
- Side-channel resistance - Protection against cache/power attacks
- IND-CCA2 security - Fujisaki-Okamoto transform for KEM constructions
- Test vector validation - Verified against known-answer tests
Supported Platforms
| Platform | Module | Status |
|---|---|---|
| Python | metamui-crypto-python |
Source |
| Rust | metamui-crypto-rust |
Source |
| TypeScript | metamui-crypto-typescript |
Source |
| Swift | metamui-crypto-swift |
Source |
| Kotlin | metamui-crypto-kotlin |
Source |
| WASM | metamui-crypto-wasm |
Source |
| C | metamui-crypto-c |
Source |
| C# | metamui-crypto-csharp |
Source |
| Go | metamui-crypto-go |
Source |
| Java | metamui-crypto-java |
Source |
Supported Algorithms
Post-Quantum Cryptography (19 Algorithms)
NIST Standardized (10)
- ML-KEM-512/768/1024 - Module-Lattice Key Encapsulation (FIPS 203)
- ML-DSA-44/65/87 - Module-Lattice Digital Signatures (FIPS 204)
- SLH-DSA-SHA2-128f - Stateless Hash-based Signatures (FIPS 205)
- SLH-DSA-SHAKE-256f - SHAKE-based variant
- Falcon-512/1024 - Fast Fourier lattice signatures
Korean PQC (KPQC)
- SMAUG-T (T1/T3/T5) - Lattice-based KEM
- Haetae (2/3/5) - Lattice signatures
- AIMer (128f/192f/256f) - MPC-in-the-head signatures
- NTRU+ (576/768/864/1152) - NTRU variant
Additional PQC
- NTRU Prime - Alternative lattice KEM
- FrodoKEM-640/976 - Learning With Errors KEM
- HQC-128 - Code-based KEM
- Classic-McEliece - Code-based cryptosystem
- XMSS - Stateful hash-based signatures
- LMS - Leighton-Micali signatures
Digital Signatures (4 Classical)
- Ed25519 - EdDSA signatures over Curve25519
- Ed25519-ZIP215 - ZIP-215 compliant variant
- Sr25519 - Schnorrkel signatures on Ristretto
- RSA-2048 - Transitional RSA for PQC migration (deprecated 2030)
Symmetric Encryption (8 Algorithms)
- AES-256-GCM - Advanced Encryption Standard (AEAD)
- AES-256-CTR - Counter mode stream cipher
- ChaCha20 - High-speed stream cipher
- ChaCha20-Poly1305 - AEAD construction
- ARIA-256 - Korean standard cipher
- Camellia-256 - Japanese standard cipher
- Ascon-128/128a - Lightweight authenticated encryption
Hash Functions (11 Algorithms)
- SHA-256/384/512 - Secure Hash Algorithm family
- SHA3-256/512 - NIST SHA-3 standard
- BLAKE2b-256/512 - High-speed hash functions
- BLAKE3 - Parallel-friendly hash
- Keccak-256 - Ethereum-compatible hash
- SipHash - Short-input PRF
- FlatHash - Fast non-cryptographic hash
Key Derivation (4 Algorithms)
- Argon2id - Memory-hard password hashing
- PBKDF2 - Password-based key derivation
- HKDF-SHA256 - HMAC-based key derivation
- BLAKE3-KDF - BLAKE3 in key derivation mode
Message Authentication (4 Algorithms)
- HMAC-SHA256/512 - Hash-based MAC
- Poly1305 - One-time authenticator
- CMAC - Cipher-based MAC
Additional Cryptographic Primitives
- X25519 - Elliptic curve Diffie-Hellman
- HMAC-DRBG - Deterministic random bit generator
- BIP39 - Mnemonic phrase generation
Licensed under BSL 1.1 / Commercial - Sovereign Wallet Co., Ltd.