Skip to main content
The SubjectData struct represents the data associated with a TAPLE subject. It contains all the essential information about a subject’s current state, excluding the cryptographic key pair.

Structure

subject_id
DigestIdentifier
required
The identifier of the subject.
governance_id
DigestIdentifier
required
The identifier of the governance contract associated with the subject.
sn
u64
required
The current sequence number of the subject.
public_key
KeyIdentifier
required
The identifier of the public key of the subject.
namespace
String
required
The namespace of the subject.
name
String
required
The name of the subject.
schema_id
String
required
The identifier of the schema used to validate the subject.
owner
KeyIdentifier
required
The identifier of the public key of the subject owner.
creator
KeyIdentifier
required
The identifier of the public key of the subject creator.
properties
ValueWrapper
required
The current state/properties of the subject.
active
bool
required
Indicates whether the subject is active or not.

Usage

The SubjectData struct is typically used when you need to represent subject information without the cryptographic key pair. It can be converted from a Subject instance:
let subject_data: SubjectData = subject.into();
  • Subject - The full subject structure including key pair
  • DigestIdentifier - Cryptographic identifier for subjects and governance
  • KeyIdentifier - Public key identifier
  • ValueWrapper - Wrapper for JSON values representing subject state

Build docs developers (and LLMs) love