Schemas
Data Schemas are useful when enforcing a specific structure on a collection of data like a Verifiable Credential. Other than that, Data Verification schema and Data Encoding Schemas are used to verify and map the structure and contents of a Verifiable Credential.
These are the schemas used in all API operations mentioned before, such as Error, Credential, Jobs, Anchor, Registry, and so on.
For a detailed example of the schema workflow. Please refer here.
Error
This is a schema for an API Error.
Properties
Hex32
32 byte hex string. Ignoring higher base (base64) for simplicity.
Properties
JobStartedResult
Object containing unique id of the background task and associated data. This id can be used to query the job status.
Properties
JobId
Unique id of the background task. This id can be used to query the job status
JobStatus
This is a schema used in Job operation to get a status of the job.
Enumerated Values
JobDesc
This is a schema used in Job operation to get description of the job including the result if it is available.
Properties
DIDDock
DID as fully qualified, e.g., did:dock:
.
Properties
KeyType
This is a schema type of public key for DID.
Enumerated Values
SigType
This is a schema used in Presentation operation that represents a type of signature.
Enumerated Values
ProofPurpose
This is a schema that represents a purpose of credential.
Enumerated Values
Context
This is a schema that represents a JSON-LD context used in DID and Presentation.
DIDDoc
This is a schema that represents a DID document. The current set of properties is incomplete
Properties
Credential
This is a schema that represents a credential format expected by API caller when issuing a credential.
Properties
VerifiablePresentation
This is a schema that represents a Verifiable (signed) Presentation returned by API. The current set of properties is almost complete
Properties
Child Properties of Proof
VerifiableCredential
This is a schema that represents a verifiable (signed) Credential returned by API. The current set of properties is almost complete.
Properties
Child Properties of Proof
Anchor
An anchor, either a batched or single is the information that constitutes the credentials' proof of existence. The schema includes anchor, type (single, batch), block hash, block number and accompanying data (root, proofs) if any. It depends if the anchor was created using API or not.
Registry
This is a schema that represents a Revocation registry used in Revocation or Unrevocation.
Properties
VerificationResponse
This is a schema that is used to define whether a credential/presentation is verified or not
Response
This is a schema that represents a default response for a request made.
Message
This is a schema that represents a message send request. If the message is signed or encrypted use the ciphertext
field. The typ
field must be a valid DIDComm message type.
Last updated