In the VeChainThor blockchain, a certificate is a data structure used for client-side self-signed certificates. It plays a crucial role in providing a mechanism for secure identification and validation of data.

Certificates are primarily used for purposes like attestation, validation, and verification of data authenticity. They are used as proofs of authenticity and origin for data exchanged within the VeChain ecosystem.

interface CertificateData {
    domain: string;
    payload: {
        content: string;
        type: string;
    };
    purpose: string;
    signature?: string;
    signer: string;
    timestamp: number;
}

Implemented by

Properties

domain: string

The domain field represents the specific context or domain for which the certificate is valid. It helps ensure that the certificate is only applicable within the intended context.

payload: {
    content: string;
    type: string;
}

The payload field holds the actual content of the certificate. This content can be of various types, such as text, images, or other data.

purpose: string

The purpose field indicates the intended use or context of the certificate. For example, it could be used for identification, verification, or attestation.

signature?: string

The signature field contains the cryptographic signature generated by the issuer's private key. This signature ensures the integrity and authenticity of the certificate's content.

The signature is a lowercase hexadecimal expression prefixed with 0x.

signer: string

The signer field indicates the address of the entity that signs the certificate. It is the public key address of the entity that issues the certificate.

timestamp: number

The timestamp field records the time at which the certificate was created or issued. This provides a temporal reference for the certificate's validity.

The value is expressed as of milliseconds elapsed since the epoch, which is defined as the midnight at the beginning of January 1, 1970, UTC.

The value is a natural number in the safe integer range of JS number type.