Skip to content

Constant Function Market Maker (CFMM) with fully homomorphic encryption(FHE). For FHE I am using fhEVM library from ZAMA protocol.

License

Notifications You must be signed in to change notification settings

ohMySol/constant-function-market-maker-enc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

cp .env.example .env

If you don't already have a mnemonic, you can use this website 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

About

Constant Function Market Maker (CFMM) with fully homomorphic encryption(FHE). For FHE I am using fhEVM library from ZAMA protocol.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published