Expand description
Contract groups.
A contract group is an identity-owned set of contracts, contract document types and contract tokens. A group is registered by a data contract create transition, which derives the group id from the registering identity and the transition’s identity nonce. Later contracts created by an owner of the group can add themselves, one of their document types, or one of their tokens to the group in their own create transition.
Drive stores every group under the ContractGroups root tree together with a backwards index
from each member contract to the groups it belongs to.
Structs§
- Contract
Group Info V0 - Version 0 of the stored contract group information.
- Contract
Group Membership - A declaration that a part of the created contract joins a contract group.
- Contract
Group Registration - The registration of a new contract group, carried by a data contract create transition.
Enums§
- Contract
Group Info - The stored information of a contract group, kept as one item under the group’s tree.
- Contract
Group Member - What part of the contract being created joins a contract group.
- Contract
Group Owner - Who owns a contract group, and who may add members to it.
Constants§
- CONTRACT_
GROUP_ ID_ DOMAIN - The domain prefix hashed into every contract group id.
Functions§
- generate_
contract_ group_ id - Derives the id of the contract group registered by a data contract create transition.