domsteil.com

Corda Network Map Setup

Dom Steil
Dom Steil

Business Network Operators today have superpowers at their fingertips to run massive enterprise-grade business networks as an infrastructure provider in addition to the opportunity to develop application specific software to manage the networking and delivery of enterprise blockchain networks

Here are some steps for setting up the network map.

Docker run -p 8080:8080 cordite/network-map

we'll setup PartyA to use the network

cd build/nodes/PartyA

delete all certificates, all additionalNodeInfos, the database, the network parameters

rm -rf persistence.mv.db nodeInfo-* network-parameters certificates additional-node-infos

append a line to point to the network map

echo "compatibilityZoneURL=\"https://dsoa.network:8080\"\n" >> node.conf

download the network map trust store

curl -o /var/tmp/network-truststore.jks http://dsoa.network:8080//network-map/truststore curl -o /var/tmp/network-truststore.jks http://dappsaas.com:8080//network-map/truststore curl -o /var/tmp/network-truststore.jks http://dapps.ngrok.io:8080//network-map/truststore

curl -o /var/tmp/network-truststore.jks http://dappserverless.com:8080//network-map/truststore

OR curl http://dappserverless.com:8080/network-map/truststore -o ~/tmp/network-truststore.jks

download the network map trust store

curl http://dapps.ngrok.io/network-map/truststore -o ~/tmp/network-truststore.jks OR curl -o /var/tmp/network-truststore.jks https://dsoa.network:8080//network-map/truststore

initialise the node through the doorman

java -jar corda.jar --initial-registration --network-root-truststore /var/tmp/network-truststore.jks --network-root-truststore-password trustpass

Designate Notary

TOKEN=curl -X POST "http://dsoa.network:8080//admin/api/login" -H "accept: text/plain" -H "Content-Type: application/json" -d "{ \"user\": \"sa\", \"password\": \"admin\"}"

curl -X POST -H "Authorization: Bearer $TOKEN" -H "accept: text/plain" -H "Content-Type: application/octet-stream" --data-binary @$NODEINFO http://dsoa.network:8080//admin/api/notaries/validating

pushd build/nodes/Notary NODEINFO=ls nodeInfo* curl -X POST -H "Authorization: Bearer $TOKEN" -H "accept: text/plain" -H "Content-Type: application/octet-stream" --data-binary @$NODEINFO http://dsoa.network:8080//admin/api/notaries/validating popd

Windows #WINDOWS

Java -Jar Corda.Jar --Initial-Registration --Network-Root-Truststore-Password Trustpass

java -jar corda.Jar --initial-registration --network-root-truststore-password trustpass