Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/security / / proveAuditInclusion
Function: proveAuditInclusion()
ts
function proveAuditInclusion(
db,
seq,
head): Promise<AuditInclusionProof>;Defined in: packages/security/src/audit/merkle.ts:174
Produce an RFC-6962 inclusion proof for the entry at seq against the head of size head.size. Throws when the entry is not covered.
Parameters
| Parameter | Type |
|---|---|
db | AuditDb |
seq | number |
head | AuditTreeHead |
Returns
Promise<AuditInclusionProof>