-
Notifications
You must be signed in to change notification settings - Fork 27
Member Onboarding (Static Networks)
This page describes the onboarding process for static members.
To build and deploy Corda 5 to a Kubernetes cluster, follow the instructions for Local development with Kubernetes.
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
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 ID
s obtained from this step.
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>