Spaces:
Runtime error
Runtime error
File size: 9,084 Bytes
4328972 af73870 4328972 be7fa0a 4328972 be7fa0a 4328972 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title>Reso — Documentation</title>
<link rel="preconnect" href="https://cdn.jsdelivr.net"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/uncut-sans@latest/400.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/uncut-sans@latest/500.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/uncut-sans@latest/600.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/uncut-sans@latest/700.css"/>
<link rel="stylesheet" href="https://cdn.hugeicons.com/font/hgi-stroke-rounded.css"/>
<style>
:root {
--bg: #020b14;
--bg-panel: #031726;
--bg-inner: #042033;
--accent: #0EA5E9;
--accent2: #38BDF8;
--text: #f0f9ff;
--text-muted: #7dd3fc;
--border: rgba(14, 165, 233, 0.25);
--font: 'Uncut Sans', sans-serif;
}
html, body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font);
line-height: 1.6;
}
/* Header */
header {
border-bottom: 1px solid var(--border);
background: var(--bg-panel);
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(8px);
}
.hdr-wrap {
max-width: 1100px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: var(--text);
}
.brand img {
width: 32px;
height: 32px;
border-radius: 50%;
box-shadow: 0 0 10px var(--accent);
}
.brand span {
font-weight: 800;
font-size: 1.25rem;
letter-spacing: -0.02em;
}
.hdr-right a {
background: linear-gradient(135deg, var(--accent), var(--accent2));
color: #fff;
text-decoration: none;
font-weight: 700;
font-size: 0.9rem;
padding: 8px 16px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
transition: transform 0.2s, opacity 0.2s;
}
.hdr-right a:hover {
transform: translateY(-1px);
opacity: 0.95;
}
/* Main Container */
.container {
max-width: 900px;
margin: 40px auto;
padding: 0 24px;
}
h1 {
font-size: 2.5rem;
font-weight: 800;
color: var(--text);
margin-bottom: 8px;
letter-spacing: -0.03em;
}
.subtitle {
color: var(--text-muted);
font-size: 1.1rem;
margin-bottom: 40px;
}
section {
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: 16px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
h2 {
font-size: 1.5rem;
font-weight: 700;
color: var(--accent2);
margin-top: 0;
margin-bottom: 16px;
display: flex;
align-items: center;
gap: 8px;
}
p {
font-size: 1rem;
color: #cbd5e1;
margin-bottom: 16px;
}
/* Key features grid */
.feature-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 20px;
}
@media (max-width: 768px) {
.feature-grid {
grid-template-columns: 1fr;
}
}
.feature-card {
background: var(--bg-inner);
border: 1px solid rgba(14, 165, 233, 0.15);
border-radius: 12px;
padding: 20px;
}
.feature-card h3 {
margin-top: 0;
margin-bottom: 8px;
color: var(--text);
font-size: 1.1rem;
font-weight: 700;
}
.feature-card p {
font-size: 0.9rem;
margin-bottom: 0;
}
/* Code output styling */
pre {
background: #010c15;
border: 1px solid var(--border);
padding: 16px;
border-radius: 10px;
color: var(--accent2);
font-family: monospace;
font-size: 0.9rem;
overflow-x: auto;
}
/* Footer */
footer {
text-align: center;
padding: 40px 24px;
color: #475569;
font-size: 0.85rem;
border-top: 1px solid var(--border);
background: var(--bg-panel);
margin-top: 60px;
}
</style>
</head>
<body>
<header>
<div class="hdr-wrap">
<a href="/" class="brand">
<span class="brand-mark" style="width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-right:8px">
<img src="logo.png" alt="Reso" style="width:100%;height:100%;object-fit:contain;border-radius:6px">
</span>
<span>Reso Docs</span>
</a>
<div class="hdr-right">
<a href="/"><i class="hgi-stroke hgi-arrow-left-01"></i> Back to Console</a>
</div>
</div>
</header>
<div class="container">
<h1>Project Documentation</h1>
<div class="subtitle">Understand how Reso handles zero-knowledge compliance on the Stellar Network.</div>
<!-- SECTION 1: OVERVIEW -->
<section>
<h2><i class="hgi-stroke hgi-passport"></i> Overview</h2>
<p>
Reso is a contemporary compliance and identity-guard framework built for the <strong>Stellar Network</strong>.
It utilizes zero-knowledge proofs (ZKP), homomorphic encryption, and multisig authorization logic to guarantee
regulatory alignment (KYC, AML, sanctions screening) without disclosing users' private wallet details or transaction histories on the public ledger.
</p>
</section>
<!-- SECTION 2: HOW IT WORKS -->
<section>
<h2><i class="hgi-stroke hgi-bubble-chart"></i> How it Works</h2>
<p>
Traditional blockchains require compliance checks to occur on-chain, exposing private user credentials.
Reso shifts the heavy cryptographic computations off-chain to an independent compliance oracle, verifying transactions securely in seconds:
</p>
<div class="feature-grid">
<div class="feature-card">
<h3>1. Off-Chain Proof Generation</h3>
<p>When a transaction is initiated, Reso compiles a cryptographic proof verifying that the user meets all requirements (KYC tier, sanctions clearance, daily transfer limits).</p>
</div>
<div class="feature-card">
<h3>2. On-Chain Verification</h3>
<p>The compiled ZK proof is transmitted to the Stellar network ledger. Rather than verifying the transaction contents, the network verifies only the mathematical correctness of the ZK proof.</p>
</div>
</div>
</section>
<!-- SECTION 3: CORE MODULES -->
<section>
<h2><i class="hgi-stroke hgi-command-line"></i> Technical Features</h2>
<div class="feature-grid">
<div class="feature-card">
<h3>ZK-Proof Transaction Simulator</h3>
<p>Allows real-time verification of transaction rules. Simulates sanctions screening, KYC tiers, and homomorphic balance cap checks.</p>
</div>
<div class="feature-card">
<h3>Additive Homomorphic Limits</h3>
<p>Uses Paillier homomorphic encryption to aggregate daily spending limits without decrypting individual transaction amounts, maintaining financial privacy.</p>
</div>
<div class="feature-card">
<h3>ZK-Gated Escrow</h3>
<p>Locks funds on the Stellar network testnet. Releasing/claiming the locked funds requires presenting a valid off-chain ZK verification token.</p>
</div>
<div class="feature-card">
<h3>Shamir Threshold Time-Locks</h3>
<p>Implements a 3-of-5 trustee schema with built-in time delays to reveal user identities only under emergency or legal audit situations.</p>
</div>
</div>
</section>
<!-- SECTION 4: COMPLIANCE FLOWS -->
<section>
<h2><i class="hgi-stroke hgi-workflow-status"></i> Compliance Workflows</h2>
<p>Reso processes compliance checks sequentially inside isolated ZK circuits, generating verification proofs step-by-step:</p>
<div class="feature-grid">
<div class="feature-card">
<h3>1. Sanctions Merkle Proof</h3>
<p>Checks if your wallet address exists in a Merkle tree of blacklisted/sanctioned entities. The ZK circuit proves the non-membership of your public key without revealing your actual address.</p>
</div>
<div class="feature-card">
<h3>2. KYC Tier Verification</h3>
<p>Verifies if your registered profile meets the required compliance tier (Tier 0, 1, or 2) for the target action. The proof validates that your credentials meet or exceed the threshold dynamically.</p>
</div>
<div class="feature-card">
<h3>3. Homomorphic Limit Attestation</h3>
<p>Aggregates transaction sums utilizing Paillier additive homomorphic encryption. This validates that the transaction is within daily spending limits without revealing the transaction amounts.</p>
</div>
<div class="feature-card">
<h3>4. On-Chain Settlement</h3>
<p>Once all compliance proofs are successfully compiled and folded together, the transaction is released to the Stellar Horizon API for final on-chain settlement.</p>
</div>
</div>
</section>
</div>
<footer>
© 2026 Reso Compliance Network. Powered by Stellar & ZK Cryptography.
</footer>
</body>
</html>
|