Skip to content

Member Onboarding (Static Networks)

Yash Nabar edited this page Jul 5, 2022 · 21 revisions

This page describes the onboarding process for static members.

Deploy Corda 5 to Kubernetes

To build and deploy Corda 5 to a Kubernetes cluster, follow the instructions for Local development with Kubernetes.

Create the group policy

Create a directory to store your files.

mkdir ~/Desktop/register-mgm/

From the corda-cli-plugin-host repo run the following commands:

./gradlew build
./build/generatedScripts/corda-cli.sh mgm groupPolicy --name="C=GB, L=London, O=Alice" --name="C=GB, L=London, O=Bob" --name="C=GB, L=London, O=Charlie" --endpoint-protocol=1 --endpoint="http://localhost:1080" >> ~/Desktop/test-static/GroupPolicy.json

Create virtual nodes for the members

Follow the steps outlined in MGM Onboarding using the GroupPolicy.json created in the previous step to upload a CPI and create virtual nodes for the members. Save the holding identity IDs obtained from this step.

Register members

The available key schemes are viewable through KeysRpcOps. One of them is used as an example in the command below.

To register a member, run the following command (replace <holding identity ID> with the ID obtained before):

curl --insecure -u admin:admin -d '{ "memberRegistrationRequest": { "action": "requestJoin", "context": { "corda.key.scheme": "CORDA.ECDSA.SECP256R1" }, "holdingIdentityId": "<holding identity ID>" } }' https://localhost:8888/api/v1/membership

Run this command for each member defined in the staticNetwork section of your GroupPolicy.json. Perform a lookup to ensure all members have registered successfully and are visible to each other:

curl --insecure -u admin:admin -X GET https://localhost:8888/api/v1/members/<holding identity ID>
Clone this wiki locally