Developer starting points

Read the docs, run the software, then pick something small and see it through to a merged pull request.

  1. Read the docs

    The documentation covers the protocol, the node, transactions, and proofs. Good first chapters: the neptune-core overview (opens in new tab) and the consensus overview (opens in new tab).

  2. Run the software

    The best way to learn is to run it. Start from the latest release, create a wallet, start the daemon, and explore the command-line tool or the dashboard.

  3. Explore the code

    Read the READMEs, which cover platform setup and build steps, build locally, and look through the open issues for the node (opens in new tab) and the wallet (opens in new tab). The node is Rust; the desktop wallet is Rust and TypeScript, so web developers can help there too.

Suggested workflow

  1. Find an issue: Browse the open issues and pick something that interests you. If you're new to the codebase, start from the good first issues for the node (opens in new tab) or the wallet (opens in new tab).
  2. Share your approach early: Post on the forum or open a draft PR before you get too deep, so you're not building in the wrong direction.
  3. Submit and stay engaged: Open your PR, respond to feedback, and see it through to merge.

Before you push to neptune-core, run make happy. It checks the formatting (cargo fmt --all fixes it), runs clippy and builds the docs with warnings treated as errors, and runs the doc tests. Use conventional commit messages, and include a regression test if you are fixing a bug. The contributing guide covers the details.

To change the protocol itself, write a Neptune Improvement Proposal and open it as a pull request on the NIPs repository (opens in new tab).

Building a tool or integration?

Start with the node's RPC. neptune-core has two interfaces, and the RPC docs (opens in new tab) cover both, including how to keep them secure.

From Rust: tarpc

What the official command-line tool and dashboard use, on port 9799 by default. It answers only on your own machine, and only to programs that hold the node's authentication cookie.

Its methods, on docs.rs (opens in new tab)

From any language: JSON-RPC over HTTP

Start the node with --listen-rpc (by default on 127.0.0.1:9797), and pick the method groups with --rpc-modules; "node" and "chain" are on by default. From Rust, the neptune-rpc-client crate wraps it.

It has no authentication. Anyone who can reach it can call every group you enable, and the "personal" group can see and spend the wallet's balance. Keep it on your own machine or a secured network.

The methods, in the neptune-rpc crates (opens in new tab)

Specs, testnet and security

To try things without real coins, start a node with --network testnet to join testnet-0, or with --network regtest to run a chain on your own machine with mock proofs, for tests.

Repositories

Neptune Cash

Triton VM and its libraries