This repo consists of server
, prover
and migrate
, is the core backend service of OreoWallet
.
Core service stores imported viewKeys from users and serves as data provider of OreoWallet.
Standalone service to generate zk proof for user transactions, serves as prover of OreoWallet.
This feature is useful only if you are running your own data provider since the 1st version of ironfish-server
. Then you need to migrate redis data to one of new redis struct or postgres db.
- Install
postgresql db
. - Install rust.
- Install sqlx-cli with
cargo install sqlx-cli
.
- If you ran
server
before, you need to migrate data to new struct withsrc/bin/migrate
. - Init postgres db with
sqlx database create
then create table withsqlx migrate run
, checkmigrations
directory for details.
- Create a config file for postgres db as
fixtures/postgres-config.yml
. - Start server with db config, node config above.
- Build.
- Run with necessary cli opts.