Scopes

Scopes allow for information sharing across the graph.

Scope

The scope serves as a container for storing and managing variables that are relevant to the nodes within the identified group.

A scope refers to a collection of variables associated with a set of nodes, identified by their unique hashes. In order to identify a specific group of nodes within the scope, the hashes of the nodes are sorted and then hashed to create a unique identifier for the group.

There are as many scopes as there are possible combinations of all the nodes, even with repetition and potentially even with nonces, which introduces the possibility to layer the scopes in many ways.

Group Scope

The scope for a group of nodes is obtained by sorting the nodes hashes, concatenating them and finally hashing the string. The resulting hash is the one for that group of nodes.

For instance, by sorting each individual node's hash, concatenating them together, and then hashing this total sum, we obtain a distinctive identifier for the global scope.

Node Scope

The Node scope is represented by the variables associated to the node’s hash.

Last updated