Skip to content

System architectures for central-bank digital currencies (CBDC) using the Stellar Consensus protocol and theories of hierarchal consensus

Notifications You must be signed in to change notification settings

Lehigh-Blockchain/standalone-scp

 
 

Repository files navigation

standalone-scp

https://github.com/bobg/scp example scp in go. Will be a good reference

running

1. Build stellar-core

Clone stellar-core locally.

$ git clone https://github.com/stellar/stellar-core

Follow instructions on how to install stellar-core https://github.com/stellar/stellar-core/blob/master/INSTALL.md

2. Edit makefile

In standalone-scp/Makefile, set CORE_DIR?= to the location of your built stellar-core

ex: in my Makefile I have CORE_DIR?=$(HOME)/dev/cbdc/stellar-core

3. Compile this repo

Run the following in standalone-scp/:

$ make

If you make changes to any files or want to re-compile:

$ make clean will remove any .o & .exe files

4. run

$ ./main.exe

node-input.txt

This is the input file that defines the nodes and their trusted slices. Each nodes quorum slices must have the node in their quorum slice.
I.e.

a
b, c

b,
a, c

c
a, b

Input file needs to be in the root folder of this repo. Format is as follows:

[node name]
[names of trusted nodes to be added to node's slice. Comma separated]
[empty line]
[node name]
[names of trusted nodes to be added to node's slice. Comma separated]
[empty line]
etc.

About

System architectures for central-bank digital currencies (CBDC) using the Stellar Consensus protocol and theories of hierarchal consensus

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.4%
  • Makefile 1.9%
  • C 0.7%