Skip to content

Commit 41f2dd8

Browse files
authored
[FEAT] Add GTM and some minor fixes (#110)
* updates * Delete package-lock.json * pnpm
1 parent b09e655 commit 41f2dd8

8 files changed

Lines changed: 19 additions & 7 deletions

File tree

docs/devdocs/architecture/data-flows/encryption-request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The following diagram illustrates the complete flow of an Encryption request in
2828
## Step-by-Step Flow
2929

3030

31-
1. **Install, include and initialize Cofhejs in your project (full details [here](/docs/devdocs/quick-start/getting-started.md))**
31+
1. **Install, include and initialize Cofhejs in your project (full details [here](/docs/devdocs/cofhejs/index.md))**
3232
```bash
3333
npm install cofhejs
3434
```
@@ -45,7 +45,7 @@ The following diagram illustrates the complete flow of an Encryption request in
4545
This verification process ensures that the ciphertext was generated correctly—that it represents a valid encryption of a known plaintext—and that the data has not been tampered with. Upon successful verification, the encrypted data is stored in the Data Availability (DA) layer.
4646
4747
The function returns a value handle that can be used to reference the encrypted data later, along with a signature.
48-
5. **Using the encrypted data**
48+
4. **Using the encrypted data**
4949
The user can send the value handle to the contract as an encrypted input. This handle represents the ciphertext stored in the DA layer and allows the contract to reference the encrypted value
5050
5151
*Note: Read more about the implementation details [here](/docs/devdocs/cofhejs/encryption-operations)*

docs/devdocs/architecture/user-facing-utilities/cofhejs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To get started with Cofhejs, you need to install it as a dependency in your Java
3232
</TabItem>
3333
</Tabs>
3434

35-
> Note: _For more information on getting started, take a look at the [**Cofhejs getting started**](/docs/devdocs/quick-start/getting-started) guide._
35+
> Note: _For more information on getting started, take a look at the [**Cofhejs getting started**](/docs/devdocs/cofhejs/index.md) guide._
3636
3737
## Key Features
3838

@@ -54,7 +54,7 @@ await cofhejs.initializeWithEthers({
5454
})
5555
```
5656

57-
> Note: _For more information on getting started, take a look at the [**Cofhejs getting started**](/docs/devdocs/quick-start/getting-started) guide._
57+
> Note: _For more information on getting started, take a look at the [**Cofhejs getting started**](/docs/devdocs/cofhejs/index.md) guide._
5858
5959
- Client-side encryption/decryption
6060

docs/devdocs/cofhejs/sealing-unsealing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In Fhenix's FHE system, data returned from smart contracts is "sealed" (internal
1515

1616
The most straightforward way to unseal data is using `cofhejs.unseal()`:
1717

18-
> Note: Unsealing requires `Cofhejs` to be [initialized](/docs/devdocs/quick-start/getting-started#setup) and for a [permit](./permits-management.md) to be created.
18+
> Note: Unsealing requires `Cofhejs` to be [initialized](./index.md#setup) and for a [permit](./permits-management.md) to be created.
1919
2020
```typescript
2121
// Get sealed data from a contract

docs/devdocs/quick-start/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ The JavaScript library for working with FHE contracts:
179179
- **Querying**: Fetch encrypted values from FHE contracts.
180180
- **Authentication**: Uses Permits to authenticate connected users when requesting confidential data.
181181

182-
Anotehr test Example of the whole flow of Cofhejs:
182+
Another test example of the whole flow of Cofhejs:
183183

184184
```typescript
185185
it('Full cofhejs flow', async function () {

docs/devdocs/tutorials/adding-FHE-to-existing-contract.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ contract VotingExample {
251251

252252
We now need to handle the user's vote casting. The first thing that we need to do is hide which option the user is voting for. We can do this by replacing the `vote` function parameter `uint256 _optionIndex` with `InEuint8 memory _optionIndex`. `InEuint8` is an encrypted input type. We then need to convert the `InEuint8` to an `euint8` for use in computation.
253253

254-
> NOTE:<br/>Encrypting inputs requires the use of [**cofhejs**](/docs/devdocs/quick-start/getting-started).<br/> Read more about [**encrypted inputs**](../cofhejs/encryption-operations.md).
254+
> NOTE:<br/>Encrypting inputs requires the use of [**cofhejs**](/docs/devdocs/cofhejs/index.md).<br/> Read more about [**encrypted inputs**](../cofhejs/encryption-operations.md).
255255
256256
```solidity
257257
// diff-remove

docusaurus.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ const config: Config = {
7676
} satisfies Preset.Options,
7777
],
7878
],
79+
plugins: [
80+
[
81+
'@docusaurus/plugin-google-tag-manager',
82+
{
83+
containerId: 'GTM-5X4J3CF7',
84+
},
85+
],
86+
],
7987
themeConfig: {
8088
metadata: [
8189
{name: 'keywords', content: 'Fhenix, Blockchain, FHE, Cofhe, Threshold Network, Fully Homomorphic Encryption, Layer 2, L2, Coprocessor, Blockchain Technology, Secure Computing, Scalable Blockchain, Decentralized'},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"dependencies": {
1818
"@cookbookdev/docsbot": "^4.24.22",
1919
"@docusaurus/core": "3.7.0",
20+
"@docusaurus/plugin-google-tag-manager": "^3.7.0",
2021
"@docusaurus/plugin-sitemap": "3.7.0",
2122
"@docusaurus/preset-classic": "3.7.0",
2223
"@docusaurus/theme-common": "3.7.0",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)