Welcome to the workshop!
In the instructions below, if nothing is specified for your system (Mac/Ubuntu) then you skip the step.
- Go to #coblox-workshop
- The url of the repo in the Slack channel topic, clone it:
git clone https://github.com/coblox/2019-genesis-workshop
Please install the following tools:
- Brew:
- Mac:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Mac:
- Docker
- Mac: https://download.docker.com/mac/beta/Docker.dmg or
brew cask install docker
- Ubuntu: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository
- Mac: https://download.docker.com/mac/beta/Docker.dmg or
- Build tools:
- Ubuntu:
apt-get install build-essential
- Ubuntu:
- rustup (Mac & Ubuntu)
curl https://sh.rustup.rs -sSf | sh
- Nix:
- try
nix-shell -p rustup
- OR enter this into a terminal if nix is giving you trouble:
nix-env -e '.*'
you will need to reinstall the toolchain afterward and uninstall rustup - or need to set
LIBRARY_PATH
to includezeromq
derivation andOPENSSL_DIR
to includestaticSupport.openssl
fromtenx-dev
- try
- libzmq:
- Ubuntu/Debian:
apt install libzmq3-dev
- Mac (Homebrew)
brew install zeromq
- Ubuntu/Debian:
- OpenSSL:
- Ubuntu/Debian:
apt install libssl-dev pkg-config
- Ubuntu/Debian:
- Source profile to add
cargo
to$PATH
:source ~/.profile
- Clone comit-rs repo:
git clone https://github.com/comit-network/comit-rs.git && cd comit-rs
- Install:
cargo install --path application/comit_node
cargo install --path application/btsieve
- Navigate to the
2019-genesis-workshop
folder - In
docker-compose.yml
, replaceBITCOIN_NODE_IP_PORT
with the Bitcoin Node IP:PORT from the Slack channel topic - Start the Bitcoin node from the workshop folder:
docker-compose up
- Install metamask: https://metamask.io/
- Setup Metamask by following the wizard (new wallet). Yes, you have to do the seed phrase thing.
- Connect metamask to our Ethereum node:
-
Choose "Custom RPC"
-
Network Name: "CoBloX Test"
-
New RPC URL: Ethereum URL from the Slack channel topic
-
Leave the rest empty
- Paste your address in the Slack channel with "Fund me please"
- In the
btsieve.toml
file, replaceREPLACE_THIS_ETHEREUM_NODE_URL
with the Ethereum URL from the Slack channel topic - Start btsieve:
btsieve --config ./btsieve.toml
- Start comit_node:
comit_node
, this will generate a config file - Kill comit_node:
pkill comit_node
orCTRL+C
- In
~/.config/comit/comit_node.toml
, update bothpoll_interval_secs
to2
(seconds). - Start comit_node again:
comit_node
- Go to http://localhost:8080
- Accept to register comit links with COMIT-I (notification in your browser)
Start by buying Bitcoin with Ether from our bobtimus (click the link in the chat).
To do Ethereum actions: use Metamask. Fund only ONCE.
To do Bitcoin actions you need to use the commandline:
alias btc-cli='docker exec 2019-genesis-workshop_bitcoind_1 bitcoin-cli -regtest'
- Redeeming:
- Get an address from your wallet (to redeem):
btc-cli getnewaddress
- Use the returned address and
20
for fees to create the transaction in the browser - Broadcast the transaction:
btc-cli sendrawtransaction <transaction hex>
- Get an address from your wallet (to redeem):
- Funding:
btc-cli sendtoaddress "address" amount
- Redeeming:
Start by buying Bitcoin with Ether from our bobtimus (click the link in the chat).