@inco/lightning 1.0.0-rc-8 → 1.0.0-rc-12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -36
- package/package.json +12 -1
package/README.md
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
The core Inco Lightning smart contracts library for building confidential applications on EVM chains.
|
|
5
|
+
The core [Inco Lightning](https://docs.inco.org) smart contracts library for building confidential applications on EVM chains.
|
|
6
|
+
|
|
7
|
+
## Documentation
|
|
8
|
+
|
|
9
|
+
Full guides, tutorials, and API references live at [docs.inco.org](https://docs.inco.org).
|
|
6
10
|
|
|
7
11
|
## Architecture
|
|
8
12
|
|
|
@@ -11,41 +15,22 @@ The Inco Lightning protocol consists of two main contracts that work together:
|
|
|
11
15
|
- **IncoLightning**: The core encrypted operations contract - handles encrypted inputs, operations (arithmetic, bitwise, comparisons), trivial encryption, and access control
|
|
12
16
|
- **IncoVerifier**: The attestation contract - manages TEE lifecycle, decryption attestations, and advanced access control with signed vouchers
|
|
13
17
|
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
subgraph External["External"]
|
|
32
|
-
CLIENT[Client App]
|
|
33
|
-
COVAL[Covalidator TEE]
|
|
34
|
-
QV[Quote Verifier]
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
CLIENT -->|"encrypted input"| EI
|
|
38
|
-
CLIENT -->|"plaintext → encrypted"| TE
|
|
39
|
-
EI --> EO
|
|
40
|
-
TE --> EO
|
|
41
|
-
EO -->|"operations emit events"| COVAL
|
|
42
|
-
EO --> ACL
|
|
43
|
-
ACL -->|"verify access proofs"| AAC
|
|
44
|
-
COVAL -->|"decryption attestations"| DA
|
|
45
|
-
COVAL -->|"TEE quotes"| TEE
|
|
46
|
-
TEE --> QV
|
|
47
|
-
DA --> SV
|
|
48
|
-
TEE --> SV
|
|
18
|
+
```
|
|
19
|
+
Client App
|
|
20
|
+
|
|
|
21
|
+
v
|
|
22
|
+
+---------------------+ verify +----------------------+
|
|
23
|
+
| IncoLightning | --------> | IncoVerifier |
|
|
24
|
+
| (encrypted ops) | proofs | (attestation) |
|
|
25
|
+
| EncryptedInput | | AdvancedAccessCtrl |
|
|
26
|
+
| EncryptedOps | | DecryptionAttester |
|
|
27
|
+
| TrivialEncryption | | TEELifecycle |
|
|
28
|
+
| AccessControlList | | SignatureVerifier |
|
|
29
|
+
| Fee Management | +----------------------+
|
|
30
|
+
+---------------------+ ^ ^
|
|
31
|
+
| events | | quotes/attestations
|
|
32
|
+
v | |
|
|
33
|
+
Covalidator TEE ---------------------+ +-- Quote Verifier
|
|
49
34
|
```
|
|
50
35
|
|
|
51
36
|
### Key Components
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inco/lightning",
|
|
3
|
-
"version": "1.0.0-rc-
|
|
3
|
+
"version": "1.0.0-rc-12",
|
|
4
|
+
"description": "Core Inco Lightning smart contracts for building confidential applications on EVM chains.",
|
|
5
|
+
"homepage": "https://docs.inco.org",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"inco",
|
|
8
|
+
"confidential",
|
|
9
|
+
"encryption",
|
|
10
|
+
"evm",
|
|
11
|
+
"ethereum",
|
|
12
|
+
"solidity",
|
|
13
|
+
"smart-contracts"
|
|
14
|
+
],
|
|
4
15
|
"repository": "https://github.com/Inco-fhevm/inco-monorepo",
|
|
5
16
|
"files": [
|
|
6
17
|
"src/",
|