CreateCertificateOptions
Defined in: packages/agent/src/certificate.ts:142
Properties
Section titled “Properties”blsVerify?
Section titled “blsVerify?”
optional
blsVerify:VerifyFunc
Defined in: packages/agent/src/certificate.ts:160
BLS Verification strategy. Default strategy uses bls12_381 from @noble/curves
canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/agent/src/certificate.ts:156
The effective canister ID of the request when verifying a response, or the signing canister ID when verifying a certified variable.
certificate
Section titled “certificate”certificate:
Uint8Array
Defined in: packages/agent/src/certificate.ts:146
The bytes encoding the certificate to be verified
disableTimeVerification?
Section titled “disableTimeVerification?”
optional
disableTimeVerification:boolean
Defined in: packages/agent/src/certificate.ts:173
Overrides the maxAgeInMinutes setting and skips comparing the client’s time against the certificate. Used for scenarios where the machine’s clock is known to be out of sync, or for inspecting expired certificates.
maxAgeInMinutes?
Section titled “maxAgeInMinutes?”
optional
maxAgeInMinutes:number
Defined in: packages/agent/src/certificate.ts:168
The maximum age of the certificate in minutes. Default is 5 minutes.
Default
Section titled “Default”5This is used to verify the time the certificate was signed, particularly for validating Delegation certificates, which can live for longer than the default window of +/- 5 minutes. If the certificate isolder than the specified age, it will fail verification.
rootKey
Section titled “rootKey”rootKey:
Uint8Array
Defined in: packages/agent/src/certificate.ts:151
The root key against which to verify the certificate (normally, the root key of the IC main network)