https://github.com/ohmysol/constant-function-market-maker-enc
Constant Function Market Maker (CFMM) with fully homomorphic encryption(FHE). For FHE I am using fhEVM library from ZAMA protocol.
https://github.com/ohmysol/constant-function-market-maker-enc
Last synced: 10 months ago
JSON representation
Constant Function Market Maker (CFMM) with fully homomorphic encryption(FHE). For FHE I am using fhEVM library from ZAMA protocol.
- Host: GitHub
- URL: https://github.com/ohmysol/constant-function-market-maker-enc
- Owner: ohMySol
- License: mit
- Created: 2024-08-24T21:10:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T13:59:54.000Z (almost 2 years ago)
- Last Synced: 2024-10-06T11:41:28.025Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Constant Function Market Maker(CFMM)
This project is about the combination of the fully homomorphic encryption with CFMM in order to provide a safe automated market maker version.
!Note though that to make this work, you must use your `INFURA_API_KEY` and your `MNEMONIC` as GitHub secrets.
## Pre Requisites
Before being able to run any command, you need to create a `.env` file and set a BIP-39 compatible mnemonic as an environment variable. You can follow the example in `.env.example` and start with the following command:
```sh
cp .env.example .env
```
If you don't already have a mnemonic, you can use this [website](https://iancoleman.io/bip39/) to generate one.
Then, proceed with installing dependencies - please **_make sure to use Node v20_** or more recent or this will fail:
```
npm install
```
### Start fhEVM local development env
```
npm fhevm:start
```