toip.tools

function · Browser and Node

checkRootLog

Checks a group's root log, oldest first: each document signed by expectedIssuer, one group, seq 0, 1, 2, …, each prev the hash of the one before, and epochs strictly rising. Two signed roots for one seq or one epoch are returned as evidence of equivocation.

@toip-tools/anon-membershipView source
TypeScriptImport
import { checkRootLog } from "@toip-tools/anon-membership";

Declaration

TypeScriptSignature
checkRootLog(log: GroupRoot[], expectedIssuer: string, clock: Clock): Promise<RootLogCheck>;

Parameters

logrequired
GroupRoot[]
expectedIssuerrequired
string
clockrequired
Clock

Returns

Promise<RootLogCheck>