Skip to content

Commit

Permalink
Merge branch 'release/0.5.x' into release-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Aug 12, 2024
2 parents afec34d + 67424ac commit 06d16f1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 100 deletions.
4 changes: 2 additions & 2 deletions docs/fundamentals/decrypt.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ You can read about an actual implemention in [our decryption guide](../guides/de

Reencryption is performed on the client side by calling the gateway service using the [fhevmjs](https://github.com/zama-ai/fhevmjs/) library. To do this, you need to provide a view function that returns the ciphertext to be reencrypted.

1. The dApp retrieves the ciphertext from the view function (e.g., balanceOf).
1. The dApp retrieves the handle from the view function (e.g., balanceOf).
2. The dApp generates a keypair for the user and requests the user to sign the public key.
3. The dApp calls the gateway, providing the ciphertext, public key, user address, contract address, and the user's signature.
3. The dApp calls the gateway, providing the handle, public key, user address, contract address, and the user's signature.
4. The dApp decrypts the received value with the private key.

You can read [our guide explaining how to use it](../guides/reencryption.md).
6 changes: 0 additions & 6 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import '@nomicfoundation/hardhat-toolbox';
import dotenv from 'dotenv';
import 'hardhat-deploy';
import 'hardhat-ignore-warnings';
import type { HardhatUserConfig, extendProvider } from 'hardhat/config';
import { task } from 'hardhat/config';
import type { NetworkUserConfig } from 'hardhat/types';
Expand Down Expand Up @@ -160,11 +159,6 @@ const config: HardhatUserConfig = {
evmVersion: 'cancun',
},
},
warnings: {
'*': {
'transient-storage': false,
},
},
typechain: {
outDir: 'types',
target: 'ethers-v6',
Expand Down
92 changes: 2 additions & 90 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fhevm",
"description": "A Solidity library for interacting with the Zama Blockchain",
"version": "0.5.3",
"version": "0.5.7",
"engines": {
"node": ">=20.0.0"
},
Expand Down Expand Up @@ -80,7 +80,6 @@
"hardhat": "^2.22.8",
"hardhat-deploy": "^0.11.29",
"hardhat-gas-reporter": "^1.0.2",
"hardhat-ignore-warnings": "^0.2.11",
"lodash": "^4.17.21",
"mocha": "^10.1.0",
"prettier": "^3.0.0",
Expand Down

0 comments on commit 06d16f1

Please sign in to comment.