Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / pruneAudit

Function: pruneAudit()

ts
function pruneAudit(db, options): Promise<PruneAuditResult>;

Defined in: packages/security/src/audit/prune.ts:78

Drop entries older than before, leaving at least retain entries. Maintains the chain integrity by rewriting the first surviving entry's prevHash to the genesis value.

Parameters

ParameterType
dbAuditDb
optionsPruneAuditOptions

Returns

Promise&lt;PruneAuditResult&gt;

Stable