Document
The Document interface serves as the base type for all entities in the Cadastry Chain system. It provides a consistent structure for storing and managing various types of data.
Key Properties
Property | Type | Description |
---|---|---|
CDID | string | Unique identifier for the document |
height | number | Version number of the document |
createdAt | string | Timestamp of document creation |
updatedAt | string | Timestamp of the last update |
createdBy | string | CDID of the actor who created the document |
updatedBy | string | CDID of the actor who last updated the document |
hash | string | Hash of the document content |
class | string | Class of the document (e.g., 'record.object.physical.artwork.painting') |
record | Record | The main content of the document if document is record |
resource | Resource | The main content of the document if document is resource |
evaluation | [key: string]: Evaluation | Evaluations of the document |
identifier | [key: string]: Identifier | Additional identifiers |
references | [CDID: string]: Document | Referenced documents from within record |
power | [key: string]: any | Power to change the document |
permission | Permissions | Access and modification permissions |
signatures | Signature[] | Signatures on the document |
The Document interface provides a flexible foundation for representing various entities while maintaining a consistent structure across the system. It allows for versioning, permissions management, and cryptographic verification of content integrity and authorship.