Skip to main content

Module contract_group

Module contract_group 

Source
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§

ContractGroupInfoV0
Version 0 of the stored contract group information.
ContractGroupMembership
A declaration that a part of the created contract joins a contract group.
ContractGroupRegistration
The registration of a new contract group, carried by a data contract create transition.

Enums§

ContractGroupInfo
The stored information of a contract group, kept as one item under the group’s tree.
ContractGroupMember
What part of the contract being created joins a contract group.
ContractGroupOwner
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.