menu

CryptoCertificateVerifyResult

import { CryptoCertificateVerifyResult } from "destack:crypto/binding";

Certificate chain verify result.

language/library/src/crypto/binding/certificate.ds:175:190
1export struct CryptoCertificateVerifyResult {2    isValid: boolean;3    error: CryptoCertificateVerifyError;4    errorCode: uint32;5    failedCertificateIndex: uint32;6    failedCertificateSubject: string;7    chainLength: uint32;8    usedSystemTrustAnchor: boolean;9}

Members

isValid: boolean

Whether the chain validates.

error: CryptoCertificateVerifyError

Normalized verification error class.

errorCode: uint32

Provider or runtime error code when validation fails.

failedCertificateIndex: uint32

Index of the first failing certificate in the evaluated chain.

failedCertificateSubject: string

Subject string of the first failing certificate when available.

chainLength: uint32

Number of certificates in the verified chain.

usedSystemTrustAnchor: boolean

Whether one system trust anchor was used.