documentValidatorBlock

This block is to validate documents, including linked documents. This block returns an error if at least one of the checks donโ€™t pass. It can be placed as a โ€˜childโ€™ document, or as a link in the sequence of the blocks.

Properties

Document Type

The following document types are supported:

  1. VC Document : validates the main document and its type (Verifiable Credential).

  2. VP Document : validates the main document and its type (Verifiable Presentation).

  3. Related VC Document : validates the document linked to the main document and its type (Verifiable Credential)

  4. Related VP Document : validates the document linked to the main document and its type (Verifiable Presentation)

Conditions

Condition N

Type:

  1. Equal โ€“ resolves to โ€˜trueโ€™ if value of the field is equal the the content of the Value parameter.

  2. Not Equal โ€“ resolves to โ€˜trueโ€™ if value of the field is NOT equal the the content of the Value parameter.

  3. In โ€“ resolves to โ€˜trueโ€™ if value of the field is present the the array.

  4. Not In โ€“ resolves to โ€˜trueโ€™ if value of the field is present the the array.

Field :

This field of the document to validates the Value parameter.

Value:

The content of this parameter is compared to the content of the Field.

Last updated