For the messaging subsystem to work it is essential to register the Self-Sovereign identity contract holding the key material with the Key Distribution Identity Contract.
You find the function UpdateGroupList in the messaging namespace. For example on: https://coin.codeb.io/messaging.asmx
The functionality is also abstracted into the CommandLine Interface.
Parameters for the function are:
The secure messaging requires members to be registered with one or several Group IDs. The value range is 0-9999. Group IDs could be for example country codes such as 49 for Germany. When CalculateZKPKeys is triggered it calculates the crypto material for all SSIs registered with that Group ID.
The SSI address of the group member to be registered.
You can give the SSI to be registered a name or description.
This specifies the address of the groups Key Distribution Identity Contract.
The address and password for an account being owner or administrator for the Distribution Identity Contract.
c:\> codeb_cli.exe group -a add -i <MyGroupID> -c <ChainAddress> -p <ChainPassword> -g <GroupSSIAddress> -m <GroupMemberSSIAddress> -e <GroupMemberName>
Note: After registering an identity you need to trigger CalculateZKPKeys. You can remove a member at any time with the function: DeleteFromGroupList