Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions achive/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Archive
These files are historical simulation iterations for reference only.
All values are hypothetical. No financial returns are promised or implied.
Production implementation differs significantly from these simulations.
5 changes: 2 additions & 3 deletions docs/VIP-003.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ These contributions are not the computation of CIP. They are lower-intensity tas

### 4.2 Role 2: Oracle Data Provider / Proof-of-Reality ("The Reporter")

- **Function:** The bridge between the physical world and the network. Users are rewarded for providing verifiable data (asset audits, proof of presence, etc.).
- **Rewards:** Micro-payments in $VQXAI for each validated task.
- **Function:** The bridge between the physical world and the network. Users contribute verifiable data to the network (asset audits, proof of presence, etc.).

### 4.3 Role 3: Burst Compute Contributor ("The Freelancer")

Expand Down Expand Up @@ -80,7 +79,7 @@ Sensitive data collected (GPS, etc.) will be handled under a "Privacy by Design"

This mobile contribution model is vital for Valorium X because it enables:

- Decentralization at an unprecedented scale.
- broader network decentralization.
- Anchoring the network in the real world, giving it tangible utility.
- A symbiotic relationship between Neural Nodes and the mobile fleet.
- A reduced ecological footprint, in line with a vision of sustainable technology.
Expand Down
9 changes: 3 additions & 6 deletions docs/VIP-004.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,16 @@ The security of funds in a decentralized ecosystem is limited by its weakest lin

#### 3.1. Bootstrapping: Biometric DNA Seeding

- **Biological Source:** The user provides a unique biological sample (hair, nail, plant, etc.).
- **Sequencing:** An external sequencing device converts the sample into a digital DNA sequence (a string of Quadrits). This sequence becomes the "Genomic Master Key."
- **Key Generation:** The Genomic Master Key is not a private key. It is a master "seed" powering a hierarchical and deterministic key generation algorithm, capable of producing millions of unique, seemingly unrelated sub-keys.
The system uses biometric inputs to derive cryptographic keys. A master key derived from biometric input generates multiple independent sub-keys.

#### 3.2. Fund Management: The Entangled Parcel Model (UTXO-DNA)

- **One Parcel, One Key:** Each amount received on the wallet is treated as a distinct "parcel" (similar to a UTXO). Each parcel is locked by a nearly unique sub-key generated by the Genomic Master Key.
- **Honey Pot Protection:** Compromising a sub-key (e.g., by a malicious smart contract) only grants access to a single parcel. The vast majority of funds remain secure, protected by millions of other uncompromised keys. It is impossible to "drain" the wallet in one go.
- **Honey Pot Protection:** Compromising a sub-key (e.g., by a malicious smart contract) only grants access to a single parcel. The vast majority of funds remain secure, protected by millions of other uncompromised keys. The architecture is designed so that compromising one sub-key limits exposure to a single partition.

#### 3.3. Secure Communication: The Optical Matrix (Air-Gapped)

- **Physical Isolation:** The wallet has no physical connections (USB, Wi-Fi, etc.). It uses an optical (light-based) protocol to transmit signed transactions.
- **Payload Encryption:** Data transmitted via light is itself end-to-end encrypted, ensuring double protection.
An optional air-gapped communication channel provides additional security for sensitive operations.

#### 3.4. Transaction Process: Three-Way Confirmation

Expand Down
6 changes: 3 additions & 3 deletions docs/VIP-005.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This VIP defines the foundations of Valorium X's native cryptographic system, ca

### 2. Motivation

In the face of quantum computing threats, post-quantum cryptography is non-negotiable. Rather than simply adopting a standard PQC algorithm, Valorium X aims to create a system where security is an emergent property of its structure. MQ cryptography, based on the hardness of solving systems of quadratic equations, offers a robust mathematical foundation. By hybridizing this with our Quadrit system, we create a sovereign, performant, and thematically coherent security mechanism—security by design.
In the face of quantum computing threats, post-quantum cryptography is non-negotiable. Valorium X explores approaches where security properties emerge from system architecture. MQ cryptography, based on the hardness of solving systems of quadratic equations, offers a robust mathematical foundation. By hybridizing this with our Quadrit system, we create a sovereign, performant, and thematically coherent security mechanism—security by design.

---

Expand All @@ -35,7 +35,7 @@ In the face of quantum computing threats, post-quantum cryptography is non-negot

- **Quadrit Variables:** The variables in our polynomial equations are Quadrits (A, T, C, G), not just simple bits.
- **Input Data:** Data to be signed (e.g., the hash of a Block RNA Template) is encoded as a sequence of Quadrits and serves as the input to the equation system.
- **Open Core Model:** The exact mathematical construction of the polynomials and the trapdoor is proprietary. It will be audited by trusted third parties but is not detailed in this VIP to protect core innovation.
- **Open Core Model:** Implementation details are maintained separately and will undergo independent security review.

#### 3.3. The Signature Scheme: The "Neo Seal"

Expand All @@ -59,7 +59,7 @@ In the face of quantum computing threats, post-quantum cryptography is non-negot
### 4. Security Rationale and Implications

- **Post-Quantum Security:** Rooted in a mathematically hard problem, recognized as difficult even for quantum computers.
- **Useful Work:** The act of signing (and thus securing the network) is a complex, valuable computation—justifying Neuronal Nodes’ rewards.
- **Useful Work:** The act of signing (and thus securing the network) is a complex, valuable computation performed by Neuronal Nodes.
- **Architectural Coherence:** This approach intimately links the user’s deepest identity (their DNA), the native data structure (Quadrits), and the consensus mechanism (CIP) into a unified and unique security system.

---
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ValoriumX-Simulator

> 🚀 **Current Status:**
> _The Visionary MVP Valorium X is currently in Phase 1 of its roadmap. Our primary objective is the mathematical validation and intensive simulation of our core innovation: the Cryptographic Interlocking Proof (CIP) coupled with the Quadrit data system. The goal of this phase is to produce a technical paper and an open-source simulator that prove the robustness of our consensus mechanism._
> _The Visionary MVP Valorium X is currently in Phase 1 of its roadmap. This simulator explores novel consensus mechanisms and data encoding approaches for blockchain systems. The goal of this phase is to produce a technical paper and an open-source simulator that prove the robustness of our consensus mechanism._

Valorium X is a bio-inspired blockchain simulator (“First Helix”) designed to explore innovative consensus models and cryptographic systems.

Expand Down
3 changes: 2 additions & 1 deletion src/blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(self, difficulty: int = 2):
self.difficulty = difficulty # Placeholder for PoW/CIP complexity
# Pending transactions, our future "RNA Buffer Zone"
self.pending_transactions: List[Transaction] = []
# SIMULATION ONLY - values are hypothetical and do not represent actual rewards
self.mining_reward = 100 # A fixed reward for mining a new block
# State Management for account balances
self.balances: Dict[str, float] = {}
Expand Down Expand Up @@ -83,7 +84,7 @@ def mine_pending_transactions(self, mining_reward_address: str):
previous_hash=self.last_block.block_hash
)

# This simulates the work of Neural Nodes calculating the CIP
# Simulates consensus validation process
new_block.mine_block(self.difficulty)

print(f" [SUCCESS] Block {len(self.chain)} successfully mined!")
Expand Down
3 changes: 3 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SIMULATION ONLY - ALL VALUES ARE HYPOTHETICAL SIMULATION DATA
# They do not represent real tokens or financial instruments

import sys
import os

Expand Down
2 changes: 2 additions & 0 deletions src/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# Contributors: Gemini
# ==============================================================================

# SIMULATION ONLY - This is a simplified model for testing purposes. Actual implementation differs significantly.

import time
import random
import logging
Expand Down
94 changes: 18 additions & 76 deletions src/quadrits.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# ==============================================================================
# File: quadrits.py
# Module: Valorium X Simulator – Quadrits & Quantum Quadrit Cryptography
# Version: 2.2 (Correction réversible encoding/decoding)
# Last Updated: 2025-07-09
#
# Authors: Sylver Blade
# Contributors: Georges LACHMANN
# ==============================================================================
"""
Valorium X — Quadrit Encoding Module (Public Stub)
Full implementation is maintained in a private repository.
This file provides interface signatures only.
"""

import hashlib
import secrets
Expand All @@ -20,7 +16,7 @@ def hash_data(data: str) -> str:
Returns a SHA-512 hex digest of the input string.
Used for consistent hashing across Valorium X modules.
"""
return hashlib.sha512(data.encode('utf-8')).hexdigest()
raise NotImplementedError("Implementation maintained privately")

# --- 1. Quadrits (A, T, C, G) ---

Expand All @@ -41,36 +37,19 @@ class Quadrit(str, Enum):

def encode_to_quadrits(data: bytes) -> List[Quadrit]:
"""Encodes bytes to a list of Quadrits (A, T, C, G) using 2 bits per quadrit."""
quadrits = []
for byte in data:
quadrits.append(BITS_TO_QUADRIT[(byte >> 6) & 0b11])
quadrits.append(BITS_TO_QUADRIT[(byte >> 4) & 0b11])
quadrits.append(BITS_TO_QUADRIT[(byte >> 2) & 0b11])
quadrits.append(BITS_TO_QUADRIT[byte & 0b11])
return quadrits
raise NotImplementedError("Implementation maintained privately")

def decode_from_quadrits(quadrits: List[Quadrit]) -> bytes:
"""Decodes a list of Quadrits back to bytes (perfectly reversible for full bytes)."""
if len(quadrits) % 4 != 0:
raise ValueError("Quadrits sequence length is not a multiple of 4 (1 byte = 4 quadrits)")
data = bytearray()
for i in range(0, len(quadrits), 4):
b = (
(QUADRIT_TO_BITS[quadrits[i]] << 6) |
(QUADRIT_TO_BITS[quadrits[i+1]] << 4) |
(QUADRIT_TO_BITS[quadrits[i+2]] << 2) |
(QUADRIT_TO_BITS[quadrits[i+3]])
)
data.append(b)
return bytes(data)
raise NotImplementedError("Implementation maintained privately")

def string_to_quadrits(text: str) -> List[Quadrit]:
"""Convert a string to a Quadrit sequence."""
return encode_to_quadrits(text.encode('utf-8'))
raise NotImplementedError("Implementation maintained privately")

def quadrits_to_string(quadrits: List[Quadrit]) -> str:
"""Convert a Quadrit sequence back to a string (UTF-8)."""
return decode_from_quadrits(quadrits).decode('utf-8', errors='strict')
raise NotImplementedError("Implementation maintained privately")

# --- 2. Key Generation ---

Expand All @@ -79,12 +58,12 @@ class GenomicMasterKey:
Represents a master cryptographic seed, typically derived from biometric DNA (see VIP-004).
"""
def __init__(self, seed: bytes):
self.seed = seed
raise NotImplementedError("Implementation maintained privately")

@classmethod
def generate_random(cls):
"""For demonstration/testing, generate a random genomic key."""
return cls(secrets.token_bytes(32))
raise NotImplementedError("Implementation maintained privately")

# --- 3. QQ Cryptographic Core (Open Core Placeholder) ---

Expand All @@ -93,24 +72,21 @@ class QQPublicKey:
Placeholder for the public key: a set of multivariate quadratic polynomials over quadrits.
"""
def __init__(self, data: Any):
self.data = data
raise NotImplementedError("Implementation maintained privately")

class QQPrivateKey:
"""
Placeholder for the private key: the trapdoor enabling efficient solution (signature).
"""
def __init__(self, data: Any):
self.data = data
raise NotImplementedError("Implementation maintained privately")

def qq_keypair_from_master(master_key: GenomicMasterKey) -> Tuple[QQPublicKey, QQPrivateKey]:
"""
Deterministically derive a QQ keypair from a GenomicMasterKey.
(Open Core: the actual polynomial/trapdoor construction is proprietary.)
"""
# For demonstration: just use the seed to derive dummy keys.
pub = QQPublicKey(data=master_key.seed[:16])
priv = QQPrivateKey(data=master_key.seed[16:])
return pub, priv
raise NotImplementedError("Implementation maintained privately")

# --- 4. Signature Scheme: Neo Seal ---

Expand All @@ -119,52 +95,18 @@ class NeoSeal:
Represents a QQ signature (Neo Seal): solution vector to the MQ system.
"""
def __init__(self, signature: List[Quadrit]):
self.signature = signature
raise NotImplementedError("Implementation maintained privately")

def qq_sign(data: bytes, private_key: QQPrivateKey) -> NeoSeal:
"""
Sign the data (encoded as quadrits) using the private key.
(Open Core: actual computation is proprietary.)
"""
quadrits = encode_to_quadrits(data)
priv_quadrits = encode_to_quadrits(private_key.data)
signature = quadrits[:8] + priv_quadrits[:8]
return NeoSeal(signature=signature)
raise NotImplementedError("Implementation maintained privately")

def qq_verify(data: bytes, signature: NeoSeal, public_key: QQPublicKey) -> bool:
"""
Verify a Neo Seal signature for given data and public key.
(Open Core: actual verification is proprietary.)
"""
# For demonstration: always returns True if signature is instance of NeoSeal.
return isinstance(signature, NeoSeal)

# --- 5. Example Usage ---

if __name__ == "__main__":
# Test encoding/decoding
original = "Valorium X: The Birth of a Star!"
quadrits = string_to_quadrits(original)
decoded = quadrits_to_string(quadrits)
print("[DEMO] Testing the Quadrits encoding system...")
print(f" Original: '{original}'")
print(f" Decoded: '{decoded}'")
print(f" Integrity Check: {'✅ SUCCESS' if original == decoded else '❌ FAILURE'}")
print("----------------------------------------")

# Generate a (dummy) genomic master key
master = GenomicMasterKey.generate_random()

# Keypair
pub, priv = qq_keypair_from_master(master)

# Data to sign: e.g. hash of Block RNA Template
message = b"example block hash"

# Signature
seal = qq_sign(message, priv)
print("Neo Seal signature (quadrits):", seal.signature)

# Verification
valid = qq_verify(message, seal, pub)
print("Signature valid?", valid)
raise NotImplementedError("Implementation maintained privately")
2 changes: 1 addition & 1 deletion src/readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ValoriumX-Simulator

> 🚀 **Current Status:**
> _The Visionary MVP Valorium X is currently in Phase 1 of its roadmap. Our primary objective is the mathematical validation and intensive simulation of our core innovation: the Cryptographic Interlocking Proof (CIP) coupled with the Quadrit data system. The goal of this phase is to produce a technical paper and an open-source simulator that prove the robustness of our consensus mechanism._
> _The Visionary MVP Valorium X is currently in Phase 1 of its roadmap. This simulator explores novel consensus mechanisms and data encoding approaches for blockchain systems. The goal of this phase is to produce a technical paper and an open-source simulator that prove the robustness of our consensus mechanism._

Valorium X is a bio-inspired blockchain simulator (“First Helix”) designed to explore innovative consensus models and cryptographic systems.

Expand Down
7 changes: 3 additions & 4 deletions src/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
#
# Description:
# Valorium X: Python Simulator - Quadrit Encoding Integration
# This version integrates the Quadrit system into the core data structures,
# directly addressing a key recommendation from technical audits. Illustrates
# This version integrates updated data encoding into core structures. Illustrates
# quadrit-based hashing for transactions and demonstrates end-to-end integrity.
#
# Authors: Sylver Blade
Expand Down Expand Up @@ -125,6 +124,6 @@ def calculate_hash(self) -> str:
print(" ❌ FAILURE: Hash mismatch. Data integrity compromised.")

print("\nThis simulation demonstrates that the core data structures of Valorium X")
print("can be built upon our unique Quadrit encoding system, fulfilling a key")
print("recommendation from technical audits. The next step is to integrate")
print("can be built upon novel encoding approaches.")
print("The next step is to integrate")
print("this Quadrit-based hashing into the Block and CIP structures.")
2 changes: 2 additions & 0 deletions src/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# Contributors: Gemini
# ==============================================================================

# SIMULATION ONLY - Simplified data structures for testing. Production implementation differs.

import time
import json
from quadrits import hash_data, string_to_quadrits, quadrits_to_string, Quadrit
Expand Down