Statements
Low-level statement functions, for when assets, @compute and contexts do not fit.
These functions are for advanced use only. Prefer the higher-level SDK features such as assets, @compute, contexts, services, and signer workflows when those cover your use case. Reach for the low-level statement APIs when you need to construct or attach statements manually.
Functions
eqty_sdk._rust.statements.add_data_statement
add_data_statement(data: List[_CID], *, _skip_proof: Optional[bool] = None, context: Optional[_Context] = None) -> List[_CID]eqty_sdk._rust.statements.add_association_statement
add_association_statement(subject: str, association: List[str], association_type: _PyAssociationType, *, _skip_proof: Optional[bool] = None, context: Optional[_Context] = None) -> List[_CID]Association Types
ASSOCIATION_TYPES.CERTIFIES
ASSOCIATION_TYPES.INCLUDES
ASSOCIATION_TYPES.IS_INSTANCE_OF
Association
A builder for constructing and finalizing association statements.
eqty_sdk.statements.Association
A builder for constructing and finalizing association statements.
An association links a subject (a CID, DID, or UUID) to one or more
predicates via an ASSOCIATION_TYPES relationship. Use Association.new()
or Association.with_context() to create an instance, attach predicates
with add_predicate(), and call finalize() to write the association
statement.
Functions:
- new – Create a new
Associationbuilder for the given subject and type. - with_context – Return a factory whose
new()buildsAssociationinstances bound toctx. - add_predicate – Add one or more predicates (
CID,DID, orUUID) to the association. - finalize – Write the association statement and return
self.
eqty_sdk.statements.Association.new
new(subject: CID | DID | UUID, association_type: PyAssociationType, **kwargs) -> AssociationCreate a new Association builder for the given subject and type.
Args:
subject: The CID, DID, or UUID the association is about.
association_type: One of the ASSOCIATION_TYPES values.
eqty_sdk.statements.Association.with_context
with_context(ctx: Context)Return a factory whose new() builds Association instances bound to ctx.
eqty_sdk.statements.Association.add_predicate
add_predicate(predicate: CID | List[CID] | DID | List[DID] | UUID | List[UUID]) -> AssociationAdd one or more predicates (CID, DID, or UUID) to the association.
eqty_sdk.statements.Association.finalize
finalize() -> AssociationWrite the association statement and return self.
eqty_sdk._rust.statements.add_computation_statement
add_computation_statement(inputs: List[_CID], outputs: List[_CID], computation: Optional[_CID] = None, *, operated_by: Optional[str] = None, executed_on: Optional[str] = None, _skip_proof: Optional[bool] = None, context: Optional[_Context] = None) -> List[_CID]eqty_sdk._rust.statements.add_did_statement
add_did_statement(did: str, *, _skip_proof: Optional[bool] = None, context: Optional[_Context] = None) -> List[_CID]eqty_sdk._rust.statements.add_entity_statement
add_entity_statement(entity: str, *, _skip_proof: Optional[bool] = None, context: Optional[_Context] = None) -> List[_CID]eqty_sdk._rust.statements.add_metadata_statement
add_metadata_statement(subject: str, metadata: str, *, _skip_proof: Optional[bool] = None, context: Optional[_Context] = None) -> List[_CID]eqty_sdk._rust.statements.add_storage_statement
add_storage_statement(data: str, stored_on: str, *, operated_by: Optional[str] = None, _skip_proof: Optional[bool] = None, context: Optional[_Context] = None) -> List[_CID]Adds a storage statement linking data to a storage location.
eqty_sdk._rust.statements.add_governance_statement
add_governance_statement(subject: str, document: str, *, _skip_proof: Optional[bool] = None, context: Optional[_Context] = None) -> List[_CID]eqty_sdk._rust.statements.add_vc_statement
add_vc_statement(subject: str, *, timestamp: Optional[str] = None, context: Optional[_Context] = None) -> _CIDeqty_sdk._rust.statements.add_model_signing_statement
add_model_signing_statement(collection_cid: str, model_signing_name: str, *, context: Optional[_Context] = None) -> _CID