-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.html
More file actions
183 lines (156 loc) · 12.3 KB
/
schema.html
File metadata and controls
183 lines (156 loc) · 12.3 KB
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
<svg viewBox="0 0 1400 900" xmlns="http://www.w3.org/2000/svg">
<!-- Background -->
<rect width="1400" height="900" fill="#f8f9fa"/>
<!-- Title -->
<text x="700" y="40" font-size="24" font-weight="bold" text-anchor="middle" fill="#2c3e50">
Architecture Multi-Blockchain : Substrate (Polkadot) → Solana NFT
</text>
<!-- Layer 1: Substrate Parachain -->
<g id="substrate-layer">
<rect x="50" y="80" width="1300" height="200" fill="#e8f4fd" stroke="#1e88e5" stroke-width="2" rx="10"/>
<text x="70" y="110" font-size="18" font-weight="bold" fill="#1565c0">Substrate Parachain (Polkadot)</text>
<!-- PKI -->
<rect x="100" y="130" width="200" height="120" fill="#fff" stroke="#42a5f5" stroke-width="2" rx="5"/>
<text x="200" y="160" font-size="14" font-weight="bold" text-anchor="middle" fill="#1976d2">PKI</text>
<text x="200" y="180" font-size="12" text-anchor="middle" fill="#555">Infrastructure de</text>
<text x="200" y="195" font-size="12" text-anchor="middle" fill="#555">Clés Publiques</text>
<circle cx="150" cy="220" r="5" fill="#42a5f5"/>
<circle cx="200" cy="220" r="5" fill="#42a5f5"/>
<circle cx="250" cy="220" r="5" fill="#42a5f5"/>
<text x="200" y="235" font-size="10" text-anchor="middle" fill="#666">Identités vérifiées</text>
<!-- Crypto Trails -->
<rect x="350" y="130" width="250" height="120" fill="#fff" stroke="#66bb6a" stroke-width="2" rx="5"/>
<text x="475" y="160" font-size="14" font-weight="bold" text-anchor="middle" fill="#388e3c">Crypto Trails</text>
<text x="475" y="180" font-size="12" text-anchor="middle" fill="#555">Horodatage blockchain</text>
<text x="475" y="195" font-size="12" text-anchor="middle" fill="#555">Hash signés</text>
<path d="M380 210 L420 210 L410 220 Z" fill="#66bb6a"/>
<path d="M430 210 L470 210 L460 220 Z" fill="#66bb6a"/>
<path d="M480 210 L520 210 L510 220 Z" fill="#66bb6a"/>
<path d="M530 210 L570 210 L560 220 Z" fill="#66bb6a"/>
<text x="475" y="235" font-size="10" text-anchor="middle" fill="#666">Traçabilité immutable</text>
<!-- RAG Storage -->
<rect x="650" y="130" width="200" height="120" fill="#fff" stroke="#ab47bc" stroke-width="2" rx="5"/>
<text x="750" y="160" font-size="14" font-weight="bold" text-anchor="middle" fill="#7b1fa2">RAG Metadata</text>
<text x="750" y="180" font-size="12" text-anchor="middle" fill="#555">Instructions</text>
<text x="750" y="195" font-size="12" text-anchor="middle" fill="#555">Schemas</text>
<text x="750" y="210" font-size="12" text-anchor="middle" fill="#555">Resources</text>
<text x="750" y="235" font-size="10" text-anchor="middle" fill="#666">Workflows définis</text>
<!-- IPFS Integration -->
<rect x="900" y="130" width="200" height="120" fill="#fff" stroke="#ff9800" stroke-width="2" rx="5"/>
<text x="1000" y="160" font-size="14" font-weight="bold" text-anchor="middle" fill="#e65100">IPFS / IPLD</text>
<text x="1000" y="180" font-size="12" text-anchor="middle" fill="#555">Stockage décentralisé</text>
<text x="1000" y="195" font-size="12" text-anchor="middle" fill="#555">CID v1</text>
<ellipse cx="1000" cy="220" rx="40" ry="15" fill="none" stroke="#ff9800" stroke-width="1"/>
<ellipse cx="1000" cy="220" rx="25" ry="10" fill="none" stroke="#ff9800" stroke-width="1"/>
<text x="1000" y="235" font-size="10" text-anchor="middle" fill="#666">Content-addressed</text>
<!-- Smart Contracts -->
<rect x="1150" y="130" width="150" height="120" fill="#fff" stroke="#ef5350" stroke-width="2" rx="5"/>
<text x="1225" y="160" font-size="14" font-weight="bold" text-anchor="middle" fill="#c62828">Pallets</text>
<text x="1225" y="180" font-size="12" text-anchor="middle" fill="#555">Smart Contracts</text>
<text x="1225" y="195" font-size="12" text-anchor="middle" fill="#555">Validation</text>
<text x="1225" y="210" font-size="12" text-anchor="middle" fill="#555">Consensus</text>
<text x="1225" y="235" font-size="10" text-anchor="middle" fill="#666">Logic on-chain</text>
</g>
<!-- Layer 2: Processing Layer -->
<g id="processing-layer">
<rect x="50" y="320" width="1300" height="200" fill="#f3e5f5" stroke="#9c27b0" stroke-width="2" rx="10"/>
<text x="70" y="350" font-size="18" font-weight="bold" fill="#6a1b9a">Couche de Traitement</text>
<!-- MCP Server -->
<rect x="100" y="370" width="250" height="120" fill="#fff" stroke="#ba68c8" stroke-width="2" rx="5"/>
<text x="225" y="400" font-size="14" font-weight="bold" text-anchor="middle" fill="#8e24aa">MCP Server</text>
<text x="225" y="420" font-size="12" text-anchor="middle" fill="#555">Model Context Protocol</text>
<text x="225" y="435" font-size="12" text-anchor="middle" fill="#555">Connection Substrate</text>
<rect x="150" y="450" width="150" height="25" fill="#e1bee7" rx="3"/>
<text x="225" y="467" font-size="11" text-anchor="middle" fill="#4a148c">cesar-human-context</text>
<!-- Claude AI -->
<rect x="400" y="370" width="250" height="120" fill="#fff" stroke="#7e57c2" stroke-width="2" rx="5"/>
<text x="525" y="400" font-size="14" font-weight="bold" text-anchor="middle" fill="#5e35b1">Claude AI 3.7</text>
<text x="525" y="420" font-size="12" text-anchor="middle" fill="#555">Maïeutique</text>
<text x="525" y="435" font-size="12" text-anchor="middle" fill="#555">Construction JSON</text>
<text x="525" y="450" font-size="12" text-anchor="middle" fill="#555">Validation Schema</text>
<circle cx="525" cy="470" r="15" fill="none" stroke="#7e57c2" stroke-width="2"/>
<text x="525" y="475" font-size="20" text-anchor="middle" fill="#7e57c2">🤖</text>
<!-- Workflow Engine -->
<rect x="700" y="370" width="300" height="120" fill="#fff" stroke="#5e35b1" stroke-width="2" rx="5"/>
<text x="850" y="400" font-size="14" font-weight="bold" text-anchor="middle" fill="#4527a0">Moteur de Workflow</text>
<text x="850" y="420" font-size="12" text-anchor="middle" fill="#555">Multi-participants</text>
<text x="850" y="435" font-size="12" text-anchor="middle" fill="#555">Étapes séquentielles</text>
<!-- Steps visualization -->
<circle cx="750" cy="460" r="8" fill="#9575cd"/>
<line x1="758" y1="460" x2="792" y2="460" stroke="#9575cd" stroke-width="2"/>
<circle cx="800" cy="460" r="8" fill="#9575cd"/>
<line x1="808" y1="460" x2="842" y2="460" stroke="#9575cd" stroke-width="2"/>
<circle cx="850" cy="460" r="8" fill="#9575cd"/>
<line x1="858" y1="460" x2="892" y2="460" stroke="#9575cd" stroke-width="2"/>
<circle cx="900" cy="460" r="8" fill="#9575cd"/>
<line x1="908" y1="460" x2="942" y2="460" stroke="#9575cd" stroke-width="2"/>
<circle cx="950" cy="460" r="8" fill="#7e57c2"/>
<text x="850" y="480" font-size="10" text-anchor="middle" fill="#666">Signature à chaque étape</text>
<!-- JSON Builder -->
<rect x="1050" y="370" width="250" height="120" fill="#fff" stroke="#ab47bc" stroke-width="2" rx="5"/>
<text x="1175" y="400" font-size="14" font-weight="bold" text-anchor="middle" fill="#6a1b9a">Livrable Final</text>
<text x="1175" y="420" font-size="12" text-anchor="middle" fill="#555">Dossier administratif</text>
<text x="1175" y="435" font-size="12" text-anchor="middle" fill="#555">JSON certifié</text>
<text x="1175" y="450" font-size="12" text-anchor="middle" fill="#555">Hash final</text>
<rect x="1100" y="460" width="150" height="20" fill="#f3e5f5" rx="3"/>
<text x="1175" y="475" font-size="10" text-anchor="middle" fill="#4a148c">W3C Verifiable Credential</text>
</g>
<!-- Layer 3: Bridge & NFT -->
<g id="bridge-layer">
<rect x="50" y="560" width="1300" height="180" fill="#e8f5e9" stroke="#4caf50" stroke-width="2" rx="10"/>
<text x="70" y="590" font-size="18" font-weight="bold" fill="#2e7d32">Bridge vers Solana</text>
<!-- Bridge Component -->
<rect x="200" y="610" width="250" height="100" fill="#fff" stroke="#66bb6a" stroke-width="2" rx="5"/>
<text x="325" y="640" font-size="14" font-weight="bold" text-anchor="middle" fill="#388e3c">Cross-Chain Bridge</text>
<text x="325" y="660" font-size="12" text-anchor="middle" fill="#555">Substrate → Solana</text>
<path d="M250 680 L400 680" stroke="#66bb6a" stroke-width="3"/>
<polygon points="395,675 405,680 395,685" fill="#66bb6a"/>
<text x="325" y="695" font-size="10" text-anchor="middle" fill="#666">Transfer sécurisé</text>
<!-- Solana PDA -->
<rect x="500" y="610" width="250" height="100" fill="#fff" stroke="#81c784" stroke-width="2" rx="5"/>
<text x="625" y="640" font-size="14" font-weight="bold" text-anchor="middle" fill="#43a047">Solana PDA</text>
<text x="625" y="660" font-size="12" text-anchor="middle" fill="#555">Program Derived Address</text>
<text x="625" y="675" font-size="12" text-anchor="middle" fill="#555">Account Management</text>
<text x="625" y="695" font-size="10" text-anchor="middle" fill="#666">À développer</text>
<!-- NFT Minting -->
<rect x="800" y="610" width="250" height="100" fill="#fff" stroke="#4caf50" stroke-width="2" rx="5"/>
<text x="925" y="640" font-size="14" font-weight="bold" text-anchor="middle" fill="#2e7d32">NFT Mint</text>
<text x="925" y="660" font-size="12" text-anchor="middle" fill="#555">Token d'accès</text>
<text x="925" y="675" font-size="12" text-anchor="middle" fill="#555">Metadata → JSON</text>
<rect x="875" y="685" width="100" height="15" fill="#a5d6a7" rx="3"/>
<text x="925" y="695" font-size="10" text-anchor="middle" fill="#1b5e20">Metaplex Standard</text>
<!-- Tool -->
<rect x="1100" y="610" width="200" height="100" fill="#fff" stroke="#388e3c" stroke-width="2" rx="5"/>
<text x="1200" y="640" font-size="14" font-weight="bold" text-anchor="middle" fill="#2e7d32">NFT Tool</text>
<text x="1200" y="660" font-size="12" text-anchor="middle" fill="#555">CLI / SDK</text>
<text x="1200" y="675" font-size="12" text-anchor="middle" fill="#555">Automation</text>
<text x="1200" y="695" font-size="10" text-anchor="middle" fill="#666">À développer</text>
</g>
<!-- Layer 4: Verification -->
<g id="verification-layer">
<rect x="50" y="770" width="1300" height="100" fill="#fff3e0" stroke="#ff9800" stroke-width="2" rx="10"/>
<text x="70" y="800" font-size="18" font-weight="bold" fill="#e65100">Vérification & Régulation</text>
<!-- Regulatory Authority -->
<rect x="200" y="810" width="300" height="40" fill="#fff" stroke="#ffa726" stroke-width="2" rx="5"/>
<text x="350" y="835" font-size="14" font-weight="bold" text-anchor="middle" fill="#f57c00">Autorités de Régulation</text>
<text x="350" y="850" font-size="10" text-anchor="middle" fill="#666">Réception NFT Solana</text>
<!-- CARGE Verification -->
<rect x="550" y="810" width="300" height="40" fill="#fff" stroke="#ff9800" stroke-width="2" rx="5"/>
<text x="700" y="835" font-size="14" font-weight="bold" text-anchor="middle" fill="#ef6c00">carge.fr</text>
<text x="700" y="850" font-size="10" text-anchor="middle" fill="#666">Vérification des certificats</text>
<!-- Public Access -->
<rect x="900" y="810" width="300" height="40" fill="#fff" stroke="#ffb74d" stroke-width="2" rx="5"/>
<text x="1050" y="835" font-size="14" font-weight="bold" text-anchor="middle" fill="#e65100">Accès Public</text>
<text x="1050" y="850" font-size="10" text-anchor="middle" fill="#666">Transparence via NFT</text>
</g>
<!-- Arrows showing data flow -->
<defs>
<marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">
<polygon points="0 0, 10 3.5, 0 7" fill="#666"/>
</marker>
</defs>
<!-- Flow arrows -->
<path d="M 700 280 L 700 320" stroke="#666" stroke-width="2" marker-end="url(#arrowhead)" stroke-dasharray="5,5"/>
<path d="M 700 520 L 700 560" stroke="#666" stroke-width="2" marker-end="url(#arrowhead)" stroke-dasharray="5,5"/>
<path d="M 700 740 L 700 770" stroke="#666" stroke-width="2" marker-end="url(#arrowhead)" stroke-dasharray="5,5"/>
</svg>