Skip to content

WholesumNet/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wholesum network Server CLI

Overview

Wholesum network is a p2p verifiable computing network. It builds on top of Risc0, Swarm, FairOS-dfs, and Libp2p to facilitate verifiable computing at scale.

How to run

Bringing up a server is no easy task that involves getting other apps up and running.

Prerequisites

You would need to get certain environments ready for the server to function properly.

Swarm

You would need a swarm node(configured as a LightNode) to enable decentralized storage. Head to the docs and get it up and running. We recommend using the Swarm Desktop app as it is very easy to config and use. Remember, your server is going to store things on Swarm so your wallet needs to be funded before storage is possible.

FairOS-dfs server and its wallet

Once Swarm is up and running, you should setup FairOS-dfs server. dfs server makes it possible to create advanced objects on top of Swarm. Head to the docs and get it up.

Once dfs server is up, you need to create a wallet and put the credentials in a file structured as below:

# a fairos-dfs client
endpoint = "http://localhost:9090"
username = "foo"
password = "password for foo"

Save it, say, to dfs-user.toml and setup is complete. To create a wallet with the above credentials, go to the registration web app and create your desired username. Pleae note that you would need Sepolia(an Ethereum testnet) eth to register users.

Docker

Docker is needed as it is going to run Risc0 images. Make sure docker runtime is properly setup. This awesome guide is also helpful.

How to run

To run a server agent, you would first need to fork the comms library and put it in the parent("..") directory of the server directory. Now everything is ready to serve clients. Hit cargo run -d dfs-user.toml and wait for compute requests!

USAGE

Usage: server [OPTIONS]

Options:
  -d, --dfs-config-file   
  -h, --help                               Print help
  -V, --version                            Print version

About

Server agent for Wholesum network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages