mitum-currency-fixed-network

command module
v0.0.0-...-2627d86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

README

mitum-currency

CircleCI Documentation GoDoc Go Report Card codecov Total alerts

mitum-currency is the cryptocurrency case of mitum model, based on mitum. This project was started for creating the first model case of mitum, but it can be used for simple cryptocurrency blockchain network (at your own risk).

This repository is for fixed network.

For more details, see the documentation.

Features,

  • account: account address and keypair is not same.
  • simple transaction: creating account, transfer balance.
  • supports multiple keypairs: btc, ethereum, stellar keypairs.
  • mongodb: as mitum does, mongodb is the primary storage.
  • supports multiple currencies

Installation

NOTE: at this time, mitum and mitum-currency is actively developed, so before building mitum-currency, you will be better with building the latest mitum source. $ git clone https://github.com/spikeekips/mitum

and then, add replace github.com/spikeekips/mitum => <your mitum source directory> to go.mod of mitum-currency.

Build it from source

$ cd mitum-currency
$ go build -ldflags="-X 'main.Version=v0.0.1'" -o ./mc ./main.go

Run

At the first time, you can simply start node with example configuration.

To start, you need to run mongodb on localhost(port, 27017).

$ ./mc node init ./standalone.yml
$ ./mc node run ./standalone.yml

Please check $ ./mc --help for detailed usage.

Test

$ go clean -testcache; time go test -race -tags 'test' -v -timeout 20m ./... -run .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmds provides command line tools.
Package cmds provides command line tools.
Package currency is the currency model, based on mitum.
Package currency is the currency model, based on mitum.
Package digest provides api features.
Package digest provides api features.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL