Skip to content

Commit af529c0

Browse files
authored
Merge pull request #42 from airchains-network/development
Updated introduction page
2 parents 76e0483 + f6b2e43 commit af529c0

36 files changed

+287
-247
lines changed

docs/api-reference/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ sidebar_position: 1
99

1010
# API Reference
1111

12-
import UnderProgress from '@site/src/components/Docs/under-progress.js';
12+
import UnderProgress from '@site/src/components/docs/under-progress.js';
1313

1414
<UnderProgress />

docs/develop/contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ sidebar_position: 5
99

1010
# Contribute
1111

12-
import UnderProgress from '@site/src/components/Docs/under-progress.js';
12+
import UnderProgress from '@site/src/components/docs/under-progress.js';
1313

1414
<UnderProgress />

docs/develop/exercise/hands-on-fhevm/index.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
2-
id: hands-on-fhevm
3-
title: Hands-on FHEVM
2+
id: index
3+
title: Hands-on fhEVM
44
description: --
5-
slug: /develop/exercise/hands-on-fhevm/hands-on-fhevm
5+
slug: /develop/exercise/hands-on-fhevm
66
hide_table_of_contents: false
77
sidebar_position: 1
88
---
99

10-
# Hands-on FHEVM
10+
# Hands-on fhEVM
1111

12-
**fhEVM** enables **privacy-preserving smart contracts** on **EVM-compatible blockchains**. This hands-on guide will walk you through **understanding, setting up, and working with fhEVM** to develop encrypted smart contracts.
12+
This hands-on guide will walk you through **understanding, setting up, and working with fhEVM** to develop encrypted smart contracts and test them on fhEVM network.
1313

1414
### What You’ll Learn
1515

16-
- Basics of **fhEVM and its architecture**.
17-
- Setting up a **local fhEVM development environment**.
18-
- Writing, compiling, and deploying **FHE-enabled Solidity contracts**.
16+
- Basics of fhEVM and its architecture.
17+
- Setting up a local fhEVM development environment.
18+
- Writing, compiling, and deploying FHE-enabled Solidity contracts.
1919
- Testing encrypted contract interactions.
2020

2121
---
@@ -92,19 +92,19 @@ For more detailed insights, you can refer to the **[official documentation by Za
9292

9393
### **What's Next?**
9494

95-
Now that you understand the **fhEVM architecture**, let's set up an **fhEVM network**.
95+
Now that you understand the **fhEVM architecture**, let's set up an **fhEVM network**.
9696
➡ Move on to **[Network Setup](./setting-up-network.md)** to learn how to proceed.
9797

9898

99-
<!--
99+
<!--
100100
## **3. Setting Up Your Development Environment**
101101
102102
Before writing encrypted contracts, install the necessary tools.
103103
104104
### **Prerequisites**
105105
106-
✔ **Go** (`v1.23.x` or later)
107-
✔ **Docker** (`v26.x.x` or later)
106+
✔ **Go** (`v1.23.x` or later)
107+
✔ **Docker** (`v26.x.x` or later)
108108
✔ **Node.js** (`v20.x` or later)
109109
110110
📖 **[Full Setup Guide](./preparation.md)**
@@ -143,11 +143,11 @@ fhEVM supports **Fully Homomorphic Encryption (FHE)** within Solidity contracts.
143143
144144
### **Key Contract Operations**
145145
146-
✔ **EncryptedERC20**: Secure token minting, transfer, and approvals.
147-
✔ **Homomorphic Computation**: Arithmetic on encrypted balances.
146+
✔ **EncryptedERC20**: Secure token minting, transfer, and approvals.
147+
✔ **Homomorphic Computation**: Arithmetic on encrypted balances.
148148
✔ **Decryption via Gateway**: Interact with KMS securely.
149149
150-
📖 **[Writing Smart Contracts](./writing-smart-contract.md)**
150+
📖 **[Writing Smart Contracts](./writing-smart-contract.md)**
151151
📖 **[Deploying Smart Contracts](./compiling-and-deploying.md)**
152152
153153
---
@@ -158,9 +158,9 @@ To validate your contracts, write **JavaScript-based tests** using `ethers.js`.
158158
159159
### **Example Test Cases**
160160
161-
✔ **Minting Tokens**
162-
✔ **Encrypted Transfers**
163-
✔ **Encrypted Approvals**
161+
✔ **Minting Tokens**
162+
✔ **Encrypted Transfers**
163+
✔ **Encrypted Approvals**
164164
✔ **Balance Decryption**
165165
166166
📖 **[Writing Test Files](./writing-contract-test-files.md)**
@@ -177,8 +177,8 @@ By completing this hands-on guide, you now understand:
177177
178178
### **Next Steps**
179179
180-
🔹 Explore **advanced encrypted contract interactions**.
181-
🔹 Contribute to **fhEVM projects and research**.
180+
🔹 Explore **advanced encrypted contract interactions**.
181+
🔹 Contribute to **fhEVM projects and research**.
182182
🔹 Learn more from **[Zama’s Official Documentation](https://docs.zama.ai/fhevm)**.
183183
184184
📖 **[Final Thoughts & Summary](./08-conclusion.md)**

docs/develop/exercise/hands-on-fhevm/prerequisites.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: prerequisites
33
title: Prerequisites
4-
description: This guide walks you through configuring your development setup, ensuring seamless interaction with the FHEVM network for encrypted smart contract execution
4+
description: This guide walks you through configuring your development setup, ensuring seamless interaction with the fhEVM network for encrypted smart contract execution
55
slug: /develop/exercise/hands-on-fhevm/prerequisites
66
hide_table_of_contents: false
77
sidebar_position: 2

docs/develop/exercise/hands-on-fhevm/setting-up-network.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: setting-up-network
33
title: Setting Up Network
4-
description: This guide walks you through configuring your development setup, ensuring seamless interaction with the FHEVM network for encrypted smart contract execution
4+
description: This guide walks you through configuring your development setup, ensuring seamless interaction with the fhEVM network for encrypted smart contract execution
55
slug: /develop/exercise/hands-on-fhevm/setting-up-network
66
hide_table_of_contents: false
77
sidebar_position: 3
@@ -10,7 +10,7 @@ sidebar_position: 3
1010
# Setting Up Network
1111

1212
:::note Preparation
13-
Before you start, ensure you have the necessary tools and dependencies installed on your system.
13+
Before you start, ensure you have the necessary tools and dependencies installed on your system.
1414
Follow the steps mentioned in the prerequisites section [here](./prerequisites.md).
1515
:::
1616

@@ -45,7 +45,7 @@ Once Go and Docker are installed, clone the **hands-on-fhevm** repository from G
4545

4646
---
4747

48-
## Setting Up the FHEVM Network using Docker
48+
## Setting Up the fhEVM Network using Docker
4949

5050
This section will guide you through setting up your **fhevm network** using Docker.
5151

@@ -85,7 +85,7 @@ make stop-full
8585

8686
Your fhevm-network is now ready to use. Proceed to [Compiling and Deploying](./compiling-and-deploying.md) your smart contracts.
8787

88-
<!--
88+
<!--
8989
9090
## Step 5: Clone the Project Repository and Setup
9191
@@ -120,4 +120,4 @@ Once Go and Docker are installed, clone the **hands-on-fhevm** repository from G
120120
121121
```bash
122122
npm start
123-
``` -->
123+
``` -->

docs/develop/exercise/hands-on-fhevm/writing-contract-test.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: writing-contract-test
3-
title: Writing Smart Contract Tests
4-
description: This guide provides instructions on writing tests for Fully Homomorphic Encryption Virtual Machine (fhEVM) smart contracts.
3+
title: Writing Smart Contract Test
4+
description: This guide provides instructions on writing test for fhEVM smart contracts.
55
slug: /develop/exercise/hands-on-fhevm/writing-contract-test
66
hide_table_of_contents: false
77
sidebar_position: 6
@@ -19,18 +19,18 @@ The tutorial uses several key libraries and utilities:
1919

2020
```javascript
2121
import { JsonRpcProvider, Wallet, Contract } from "ethers"; // Core ethers.js components
22-
import { createInstance } from "../utils/create-instance.js"; // FHEVM instance creation
22+
import { createInstance } from "../utils/create-instance.js"; // fhEVM instance creation
2323
import { loadABI } from "../utils/load-abi.js"; // ABI loading utility
2424
import logger from "../utils/logger.js"; // Logging utility
2525
```
2626

2727
### Understanding Key Components
2828

29-
#### FHEVM Instance Creation
29+
#### fhEVM Instance Creation
3030

3131
The `createInstance` function is crucial for our cryptographic operations:
3232

33-
- Creates an instance of the FHEVM (Fully Homomorphic Encryption Virtual Machine)
33+
- Creates an instance of the fhEVM (Fully Homomorphic Encryption Virtual Machine)
3434
- Enables secure operations on encrypted data
3535
- Is required for privacy-preserving transactions
3636

@@ -138,7 +138,7 @@ export async function transferTokens(
138138
contractAddress
139139
);
140140

141-
// Create FHEVM instance for encryption
141+
// Create fhEVM instance for encryption
142142
const fhevmInstance = await createInstance();
143143

144144
// Prepare encrypted input

docs/develop/exercise/hands-on-fhevm/writing-smart-contract.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ hide_table_of_contents: false
77
sidebar_position: 5
88
---
99

10-
# Writing Smart Contracts for the FHEVM
10+
# Writing Smart Contracts for the fhEVM
1111

12-
The FHEVM environment enables Fully Homomorphic Encryption (FHE) computations directly on encrypted data within Ethereum-like smart contracts. This means that the contract can store, process, and manipulate data in ciphertext form without ever exposing the underlying cleartext values. As a result, developers can build decentralized applications that protect user privacy on a public blockchain.
12+
The fhEVM environment enables Fully Homomorphic Encryption (FHE) computations directly on encrypted data within Ethereum-like smart contracts. This means that the contract can store, process, and manipulate data in ciphertext form without ever exposing the underlying cleartext values. As a result, developers can build decentralized applications that protect user privacy on a public blockchain.
13+
14+
This is a simple example of an ERC20 token smart contract. For writing more complex contracts, please refer to the [fhEVM documentation](https://docs.zama.ai/fhevm/0.5-4/guides) for more details.
1315

1416
---
1517

@@ -31,8 +33,8 @@ The contract uses the following dependencies:
3133

3234
```solidity
3335
import "./core/lib/TFHE.sol";
34-
import "@openzeppelin/contracts/access/Ownable2Step.sol";
3536
import "./core/gateway/GatewayCaller.sol";
37+
import "@openzeppelin/contracts/access/Ownable2Step.sol";
3638
```
3739

3840
---

docs/develop/exercise/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ sidebar_position: 2
99

1010
# Exercise
1111

12-
import UnderProgress from '@site/src/components/Docs/under-progress.js';
12+
import Exercise from '@site/src/components/docs/exercise.js';
1313

14-
<UnderProgress />
14+
<Exercise />

docs/develop/kms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ sidebar_position: 3
99

1010
# Key Management Service
1111

12-
import UnderProgress from '@site/src/components/Docs/under-progress.js';
12+
import UnderProgress from '@site/src/components/docs/under-progress.js';
1313

1414
<UnderProgress />

docs/develop/relayers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ sidebar_position: 4
99

1010
# Relayers
1111

12-
import UnderProgress from '@site/src/components/Docs/under-progress.js';
12+
import UnderProgress from '@site/src/components/docs/under-progress.js';
1313

1414
<UnderProgress />

0 commit comments

Comments
 (0)