Skip to content

roastario/spring-boot-network-map

Repository files navigation

The network map

Corda uses a http protocol for sharing address/identity mappings This container aims to be a simple way of getting started with corda networks. To do this, it provides a simple non-validating notary and a network map within a single container

The doorman

Corda is a permissioned system, and control of which identities are allowed onto a network is provided by the doorman protocol as described here.

This container implements provides an "Auto" accept doorman, with a trust root of the corda development certificate authority. This trust root is available at the endpoint http://<serving_url>/trustroot with a password of trustpass.

Building the project

  • To build the network map jar use: ./gradlew clean build
  • To build the network map jar and the docker image use: ./gradlew clean build && ./gradlew docker (This must be run as two commands due to an issue with the docker plugin used //TODO - change plugin)

Notary Config

The notary must be configured to know what address to advertise itself on. This is done via a PUBLIC_ADDRESS environment variable passed to the container

WhiteListing of contracts

If your cordapp makes use of the zone whitelist, you must provide a set of jars for the container to whitelist. This is done via mounting a folder into the /jars directory.

Platform Version

The network-map is configured by default to use the platform version of the corda runtime bundled as the minimumPlatformVersion of the network. It is possible to modify this by passing --minimumPlatformVersion=<required_version> to the container

Example Run

docker run -it -v corda/samples/bank-of-corda-demo/build/nodes/BankOfCorda/cordapps:/jars -p 8080:8080 -p 10200:10200 -e PUBLIC_ADDRESS=stefano-corda.azure.io roastario/notary-and-network-map:4.0 --minimumPlatformVersion=4
  • the network map will be exposed on port 8080,
  • the notary will be exposed on port 10200 and advertised as stefano-corda.azure.io
  • the cordapps located in corda/samples/bank-of-corda-demo/build/nodes/BankOfCorda/cordapps will be used to generate a whitelist
  • the minimum version of the network will be set to 4

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published