mitum-blocksign
mitum-blocksign is the data management case of mitum model, based on
mitum and mitum-currency.
Features,
- account: account address and keypair is not same.
- documentData: actual data stored in document.
- simple transaction: create document, transfer document, sign document.
- supports multiple keypairs: btc, ethereum, stellar keypairs.
- mongodb: as mitum does, mongodb is the primary storage.
Installation
NOTE: at this time, mitum and mitum-blocksign is actively developed, so
before building mitum-blocksign, you will be better with building the latest
mitum source.
$ git clone https://github.com/soonkuk/mitum-blocksign
and then, add replace github.com/spikeekips/mitum => <your mitum source directory>
to go.mod
of mitum-blocksign.
Build it from source
$ cd mitum-blocksign
$ go build -ldflags="-X 'main.Version=v0.0.1'" -o ./mbs ./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).
$ ./mbs node init ./standalone.yml
$ ./mbs node run ./standalone.yml
Please check $ ./mbs --help
for detailed usage.
Test
$ go clean -testcache; time go test -race -tags 'test' -v -timeout 20m ./... -run .