@0xflydev/labz 1.0.18 → 1.0.19
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/base-template/README.md +23 -24
- package/package.json +1 -1
package/base-template/README.md
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# FHEVM Smart Contract
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
{{description}}
|
|
6
|
-
|
|
7
|
-
## Overview
|
|
8
|
-
|
|
9
|
-
{{longDescription}}
|
|
3
|
+
A privacy-preserving smart contract built with Fully Homomorphic Encryption (FHE).
|
|
10
4
|
|
|
11
5
|
## Quick Start
|
|
12
6
|
|
|
@@ -14,32 +8,37 @@
|
|
|
14
8
|
# Install dependencies
|
|
15
9
|
npm install
|
|
16
10
|
|
|
17
|
-
# Run tests
|
|
18
|
-
npx hardhat test
|
|
19
|
-
|
|
20
11
|
# Compile contracts
|
|
21
12
|
npx hardhat compile
|
|
22
|
-
```
|
|
23
13
|
|
|
24
|
-
|
|
14
|
+
# Run tests
|
|
15
|
+
npx hardhat test
|
|
25
16
|
|
|
26
|
-
|
|
17
|
+
# Deploy (local)
|
|
18
|
+
npx hardhat run deploy/deploy.ts
|
|
19
|
+
```
|
|
27
20
|
|
|
28
|
-
##
|
|
21
|
+
## Project Structure
|
|
29
22
|
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
23
|
+
```
|
|
24
|
+
contracts/ - Solidity smart contracts
|
|
25
|
+
deploy/ - Deployment scripts
|
|
26
|
+
test/ - Test files
|
|
27
|
+
```
|
|
34
28
|
|
|
35
|
-
## FHE Operations
|
|
29
|
+
## FHE Operations
|
|
36
30
|
|
|
37
|
-
|
|
31
|
+
This contract uses encrypted data types and operations from the FHEVM library:
|
|
32
|
+
- `euint64`, `euint32`, `ebool` - Encrypted integers and booleans
|
|
33
|
+
- `FHE.add`, `FHE.sub`, `FHE.mul` - Encrypted arithmetic
|
|
34
|
+
- `FHE.lt`, `FHE.gt`, `FHE.eq` - Encrypted comparisons
|
|
35
|
+
- `FHE.select` - Encrypted conditional selection
|
|
38
36
|
|
|
39
|
-
##
|
|
37
|
+
## Resources
|
|
40
38
|
|
|
41
|
-
|
|
39
|
+
- [FHEVM Documentation](https://docs.zama.ai/fhevm)
|
|
40
|
+
- [Lab-Z CLI](https://github.com/Farukest/Lab-Z)
|
|
42
41
|
|
|
43
42
|
---
|
|
44
43
|
|
|
45
|
-
Generated with [
|
|
44
|
+
Generated with [Lab-Z](https://github.com/Farukest/Lab-Z)
|