Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/security / / signAuditCheckpoint
Function: signAuditCheckpoint()
ts
function signAuditCheckpoint(db, opts): Promise<SignedAuditCheckpoint>;Defined in: packages/security/src/audit/merkle.ts:377
Compute and sign the current tree head.
Parameters
| Parameter | Type | Description |
|---|---|---|
db | AuditDb | - |
opts | { now?: () => number; privateKeyPem: string; writerId: string; } | - |
opts.now? | () => number | Override the wall clock - used by tests. |
opts.privateKeyPem | string | - |
opts.writerId | string | - |
Returns
Promise<SignedAuditCheckpoint>