GithubHelp home page GithubHelp logo

blockreal / swisstronik-chain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sigmagmbh/swisstronik-chain

0.0 0.0 0.0 857 KB

Swisstronik is an identity-based hybrid layer-1 blockchain ecosystem. It lets Web 3.0 and traditional companies build KYC, AML and DPR compliant applications with enhanced data privacy

License: GNU Lesser General Public License v3.0

Shell 4.23% JavaScript 16.81% Go 72.72% Makefile 0.69% Dockerfile 1.26% Solidity 4.28%

swisstronik-chain's Introduction

Swisstronik Blockchain

Swisstronik is an identity-based hybrid layer-1 blockchain ecosystem. It lets Web 3.0 and traditional companies build KYC, AML and DPR compliant applications with enhanced data privacy

Build local node docker image

Build

Install submodules by running

make init 

Build an enclave. For testing purposes you can build enclave in simulation mode by adding SGX_MODE=SW

make build-enclave

Build a chain

make build

Docker

Local development node

Before building ensure that you initialized all submodules. You can do that by running:

make init

To build a Docker image, that contains binary for local Swisstronik node, run the following command:

make build-docker-local

This will create an image with the name swisstronik and latest version tag. Now it is possible to run the swisstronikd binary in the container, e.g. checking stored keys:

docker run -it --rm swisstronik swisstronikd keys list

Local testnet

To setup local test network with multiple validators, run:

swisstronikd testnet init-files --starting-ip-address 192.167.10.1 --chain-id swisstronik_1291-1

Then run:

docker-compose -f local-network.yml up

Monitoring

Enable monitoring

To enable monitoring for your node, first check if prometheus is enabled (prometheus = true) in config.toml, located at $HOME/.swisstronik/config by default. To enable it, simply run:

sed -i 's/prometheus = false/prometheus = true/g' <YOUR-NODE-HOMEDIR>/config/config.toml

Also, you need to enable telemetry in app.toml. To enable it, change enabled to true

[telemetry]
  enable-hostname = false
  enable-hostname-label = false
  enable-service-label = false
  enabled = false 
  global-labels = []
  prometheus-retention-time = 0
  service-name = ""

Then you need to restart your node. After that you should be able to access the tendermint metrics (default port is 26660)

Configure Prometheus Targets

Update target with address of your node in monitoring/prometheus.yml. This will tell prometheus from where it should obtain metrics

Setup Prometheus and Grafana

You can start docker containers with prometheus and grafana using docker-compose. To do it, run:

docker-compose run up -d

swisstronik-chain's People

Contributors

mikkysnow avatar delneg avatar web3js-org avatar zagrebelin avatar kenta92115 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.