zbc-solidity

A Solidity library for interacting with the Zama Blockchain

Development guide

Install dependencies (Solidity libraries and dev tools)

npm install

Note: Solidity files are formatted with prettier.

Generate TFHE lib

npm run codegen

WARNING: Use this command to generate Solidity code and prettier result automatically!

Demo Test

This repository includes a python script (see demo_test.py) that automates a sequence of steps simulating deployment and interaction with an encrypted ERC20 contract.

In order to test the reencrypt logic, a small Rust tool is included in the decrypt folder. This tool should be compiled before execution of the python script with

cargo +nightly build --release --features tfhe/aarch64-unix

or

cargo build --release --features tfhe/x86_64-unix

depending on your architecture.

Description
No description provided
Readme BSD-3-Clause 22 MiB
Languages
TypeScript 99.4%
Python 0.5%