nexus-xyz / network-api
- четверг, 12 декабря 2024 г. в 00:00:01
High-performance interface for supplying compute to the Nexus network.
A high-performance command-line interface for contributing proofs to the Nexus network.
Verifiable Computation on a Global Scalecurl https://cli.nexus.xyz/ | sh
If you don't have Rust installed, you will be prompted to install it.
sudo apt update && sudo apt upgrade
sudo apt install build-essential pkg-config libssl-dev git-all
brew install git
Install WSL first, then follow Linux instructions.
Use of the CLI is subject to the Terms of Use. First-time users will be prompted to accept the terms. For non-interactive acceptance (e.g., CI environments), use:
NONINTERACTIVE=1 sh
The CLI will prompt for your web prover id from beta.nexus.xyz on startup. It is ok to skip this prompt and a random id will be generated, but you'll be prompted again on startup until your web prover id is entered.
The prover id prompt is disabled when NONINTERACTIVE=1 is set. In a server environment, you can manually overwrite $HOME/.nexus/prover-id with your full prover id.
network-api/
├── assets/ # Media for documentation
├── clients/
│ └── cli/ # Main CLI implementation
├── proto/ # Shared network interface definition
└── public/ # Files hosted at cli.nexus.xyz
See CONTRIBUTING.md for development setup and guidelines.