centrifuge / pod

Go implementation of Centrifuge POD (Private Off-chain Data) node
https://docs.centrifuge.io/build/p2p-node/
MIT License
77 stars 35 forks source link
centrifuge ethereum fintech golang supply-chain

Centrifuge POD (P2P Node)

Tests GoDoc Reference codecov Go Report Card

This repository contains the Go implementation of the Centrifuge POD (Private Off-chain Data) protocol. It connects to other nodes via libp2p and uses Centrifuge Chain for on-chain interactions.

Getting help: Head over to our documentation at docs.centrifuge.io to learn how to setup a node and interact with it. If you have any questions, feel free to join our discord

Pre-requisites

Fetch dependencies

To fetch the dependencies, run make install-deps.

Install Node

To install, run make install will compile project to binary centrifuge and be placed under GOBIN.

Ensure GOBIN is under PATH to call the binary globally.

Running tests

There 4 different flavours of tests in the project

To run all the tests:

Deploying locally

If you like to deploy all the dependencies including node, please follow below steps

Create config file and Start centrifuge node locally:

To start centrifuge node locally, follow the steps below:

API definitions

Node APIs are published to swagger hub. For the latest APIs, please see here: APIs