π Run the node
Clean the Database and Wallet (Optional)
Before starting the node, you may want to ensure a clean environment by resetting the database and wallet. This step is useful if youβre running the Cyferio SDK node for the first time or want to remove any previous data.
-
Navigate to the Rollup Directory:
Open a terminal and navigate to the
crates/rollup/
directory:cd crates/rollup/
-
Clean the Database:
If you want to start with a fresh state, remove any previous data from the database using:
make clean-db
-
Clean the Wallet:
To remove any existing wallet information, run:
make clean-wallet
Note: Skip this step if you want to retain your previous wallet setup or data.
Start the Rollup Node
Once the environment is configured, and keys are generated, you can start the Cyferio SDK node with the FHE module enabled. This will allow the node to handle confidential computations using Fully Homomorphic Encryption (FHE).
-
Ensure the Required Environment Variables Are Set:
Before running the node, make sure the environment variables are properly configured, as set in setup-environment.md:
export SKIP_GUEST_BUILD=1 export SOV_PROVER_MODE=skip
-
Compile and Start the Node:
Use the following command to compile and run the node in release mode (optimized for performance):
cargo run --release --bin node
This command will start the Cyferio SDK rollup node with FHE capabilities enabled. Running in release mode ensures faster and more efficient performance, especially for FHE operations.
Tip: Keep an eye on the terminal logs to monitor the nodeβs activity and ensure there are no errors during startup.
Once the node is running, it will be able to process confidential computations, such as token transfers and balance queries, using the FHE module.