:Document
Every object in Cadastry is a Document. Every Document has cryptographic signature that created it or update it.
The Document is the top-level class that represents a data in Cadastry. The Document class contains all of the information and properties that describe the data contained in the document, including the unique identifier, creation and update times, and digital signature used to sign the document.
There are two types of documents: Records and Resources.
Basic structure is top level object structure you can find here. It represents head of each document.
Followed by Signatures array of objects. Description of signature object you can find here.
CDID: This field contains a unique Cadastry identifier for the document.createdAt: This field indicates the time at which the record was create in ISO 8601 standard.updatedAt: This field indicates the time at which the record was last updated in ISO 8601 standard.createdBy: This field indicates an actor that created the record.updatedBy: This field indicates an actor that last updated the record.hash: SHA-256 hash of a record or resource
Example
Record example
{
"CDID": "3F2504E0-4F89-41D3-9A0C-0305E82C3301",
"createdAt": "2022-12-09T10:00:00Z",
"updatedAt": "2022-12-09T10:15:00Z",
"createdBy": "@3F2504E0-4F89-41D3-9A0C-0305E82C3301",
"updatedBy": "@3F2504E0-4F89-41D3-9A0C-0305E82C3301",
"hash": "8e17c1671e1bac70ae8c7e6ab14dc67f907f9a186329c03e0a0a52c72bcd04e3",
"_signatures": [
{
"actor": "81a0e03c-e6c6-4292-a6af-b0b6533af3f4",
"pubKey": "5XTpvMQEdngxTTYhypVw6VKhtSEPQCSEkBy3fEcC6tmq",
"signature": "5z7Ts4rYkAE83juascRMCTHwv3wJTJmkTyDpPPmynLbRnjPBJPmUdUjDKS6NmVU1fmtAJPLoyBpujfJQ6ekicsiH",
"timeStamp": "2023-08-31T13:13:54.257867+02:00"
}
],
}