Skip to content

(DEPRECATED) Golang implementation of KardiaChain Decentralize Network

License

Notifications You must be signed in to change notification settings

yadsendew/go-kardia

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Kardia

(DEPRECATED) We're moving to RUST Core

version Go version License: LGPL v3 CircleCI codecov

Official Golang implementation of KardiaChain following the specs in Technical Paper

alt text

KardiaChain Aris Mainnet 1.0

KardiaChain Private Devnet

Quickstart

Run Local Testnet with docker

Join Public Testnet

Join Mainnet

Development

Go environment setup

Install Go to $HOME directory. Sets environment vars:

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

  • Recommend go build version: 1.14.12 (stable), 1.15.5 (unstable)
  • Recommend go test ./... >= version: 1.14.12

Installation Prerequisites

Build

cd $GOPATH/src/github.com/kardiachain/go-kardia/cmd
go install

Directory structure

Most of the top-level directories are self-explanatory. Here are the core directories:

  • consensus - consensus engine
  • config - default network configs
  • dualchain - dual node's blockchain and service
  • dualnode - interface layer to external blockchains, e.g. Ethererum, Neo, etc.
  • kai - shared libraries specific to KardiaChain
  • kvm - Kardia virtual machine
  • lib - third-party libraries
  • node - Node service
  • rpc - RPC server
  • mainchain - Kardia blockchain core and service
  • proto - protobuf messages definition
  • types - Kardia objects types

Unit tests

cd $GOPATH/src/github.com/kardiachain/go-kardia
go test ./...

Start Kardia network

Mainnet

Testnet Fengari 3.0

./cmd --network testnet --node <path/to/kai_config_testnet.yaml>

Devnet

./cmd --network devnet --node <path/to/kai_config_devnet_node1.yaml>
./cmd --network devnet --node <path/to/kai_config_devnet_node2.yaml>
./cmd --network devnet --node <path/to/kai_config_devnet_node3.yaml>

Monitor network with KardiaChain Explorer

About

(DEPRECATED) Golang implementation of KardiaChain Decentralize Network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.4%
  • Solidity 1.5%
  • JavaScript 0.7%
  • Assembly 0.3%
  • C 0.1%
  • Shell 0.0%