Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (48 sloc) 2.01 KB

Installing KMDICE on OSX


Packages are installed through homebrew, make sure to install it:

/usr/bin/ruby -e "$(curl -fsSL"

Now install the dependency packages:

brew tap discoteq/discoteq; brew install flock
brew install autoconf autogen automake
brew install gcc@6
brew install binutils
brew install protobuf
brew install coreutils
brew install wget
brew install nanomsg


brew tap discoteq/discoteq; brew install flock autoconf autogen automake gcc6 binutils protobuf coreutils wget nanomsg

Clone the Komodo repository

git clone

Get the proving keys:

cd komodo

And now build Komodo

git checkout dev

Run Komodo

If the build went well, run KMDICE:

cd ~/komodo/src
./komodod -ac_name=KMDICE -ac_supply=10500000 -ac_reward=2500000000 -ac_halving=210000 -ac_cc=2 -addressindex=1 -spentindex=1 &

Get PUBKEY to use Crypto Conditions Dice Game:

./komodo-cli -ac_name=KMDICE getnewaddress

This command should print a new KMDICE address, copy that address and validate it:

./komodo-cli -ac_name=KMDICE validateaddress <ADDRESS>

In the output of validateaddress you will see a field that says pubkey. You need to copy that pubkey and use it to run the daemon with it:

./komodo-cli -ac_name=KMDICE stop

Now restart the daemon using the -pubkey parameter:

./komodod -ac_name=KMDICE -ac_supply=10500000 -ac_reward=2500000000 -ac_halving=210000 -ac_cc=2 -addressindex=1 -spentindex=1 -pubkey=<YOUR PUBKEY>

That is all, you should now be able to play dice game.