Skip to content

Creating Your Uni

A Uni is comprised of multiple nodes that share a common data model. There is a separate page outlining how to model your data. On this page, we will address how to define and associate partners with the model and, ultimately, how to create the resources required of a Uni.

Registration File

The registration file is a JSON file used to define where to locate the schema and the nodes that are participating in a Uni.

When creating a registration file, the registration file must include the name of the uni (with or without its namespace), the schema json file, as well as any nodes you want created at initial build.

Sample dynamic registration file
{
"name": "test-inventory",
"schema": "schema.json",
"nodes": [
{
"name": "DistributionCenter",
"userId": "user1@domain1.com",
"region": "us-east-2",
"csp": "aws"
}
]
}

Uni creators can only register nodes under their own email. To add additional nodes owned by different users, the Vendia Share manager of the DistributionCenter must invite additional parties. The invitation can be created from the Vendia Share CLI (share uni invite) or through the Vendia Share web application.

Once the initial Uni is created, it will be in a RUNNING state. Each participant can be added when the time is appropriate. There is no need for other parties to specify a schema or initial state. New nodes will have their data populated from the existing Uni.

Uni Invitation - Web App

Uni Invitation - Specify Participant

When the new participant accepts the invitation and joins the Uni, the Uni will pause write operations as initial data is populated in the new node. Once the new node is up and running and data is in sync, the Uni will automatically return to the RUNNING state. Pending writes will be applied. Read requests to a Uni node are unaffected and will continue to work as expected while the new node is added to the Uni.

Adding a node

When a node is added to your uni, the new node’s ledger and world state is seeded from a single node in the Uni. This node is called the Seed Node. The Seed Node is always the first node in the uni.

NOTE: Vendia Share users inviting new nodes to a Uni must have sufficient privileges. Vendia Share users accepting an invitation must also have sufficient privileges to join a Uni. Please review Vendia’s Role-based Access Control documentation for more detail.

ANOTHER NOTE: Though many invitations can be out to new Uni participants, only one node can be added at a time.

Next Steps

Developing and Using Unis

Integrating a Vendia chain with other Cloud, Web, and Mobile Services

Learning More

Terms and Definitions