Sample Loom Blockchain project GO Language
For more info please checkout the docs page for the Loom SDK
To Build
export GOPATH=$GOPATH:`pwd`
make deps
make
make deps
make
To Run (Requires Loom Dappchain engine binary)
cd build
./loom init
cp ../genesis.example.json genesis.json
./loom run
./loom init
cp ../genesis.example.json genesis.json
./loom run
After running loom, open new terminal tab and and blueprint as follows.
Generate private key
cd build
./blueprint genkey
./blueprint genkey
this will generate private key file named "key" to be further
Create user account
./blueprint call create-acct -u <account-name> -k key
Set value for user
./blueprint call set -u <account-name> -v <any-integer> -k key
Get value for user
./blueprint call get -u <account-name> -k key