currency-model

module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: GPL-3.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).

Features,

  • account: account address and keypair is not same.
  • simple transaction: creating account, transfer balance.
  • supports multiple keypairs: btc, ethereum, keypairs.
  • 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/imfact-labs/mitum2

and then, add replace github.com/imfact-labs/mitum2 => <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 init --design=./standalone.yml genesis-design.yml
$ ./mc run ./standalone.yml --dev.allow-consensus

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

Test

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

Directories

Path Synopsis
api module
app module
Package base provides the fundamental structures for currency model.
Package base provides the fundamental structures for currency model.
digest module
operation
currency
Package currency provides the currency operations.
Package currency provides the currency operations.
did-registry
Package did_registry provides the currency operations.
Package did_registry provides the currency operations.
isaac
Package isaacoperation provides the base operations.
Package isaacoperation provides the base operations.
bsonenc
Package bsonenc support encoding and decoding by bson.
Package bsonenc support encoding and decoding by bson.

Jump to

Keyboard shortcuts

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