# CryptoCertificateVerifyResult

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

Certificate chain verify result.

```ds title="CryptoCertificateVerifyResult"
export struct CryptoCertificateVerifyResult {
    isValid: boolean;
    error: CryptoCertificateVerifyError;
    errorCode: uint32;
    failedCertificateIndex: uint32;
    failedCertificateSubject: string;
    chainLength: uint32;
    usedSystemTrustAnchor: boolean;
}
```

[language/library/src/crypto/binding/certificate.ds:175:190](https://github.com/destack-sh/destack/blob/main/language/library/src/crypto/binding/certificate.ds#L175-L190)

## 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.
