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-membership` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/anon-membership/src/roots.ts#L98)

Import:

```ts
import { checkRootLog } from "@toip-tools/anon-membership";
```

## Declaration

Signature:

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

### Parameters

- **`log` (required)**: `GroupRoot[]`
- **`expectedIssuer` (required)**: `string`
- **`clock` (required)**: `Clock`

### Returns

`Promise<RootLogCheck>`

[Usage guide](https://toip.tools/toolkit/anon-membership/#usage) · [Error handling](https://toip.tools/toolkit/anon-membership/#errors) · [All exports](https://toip.tools/toolkit/anon-membership/api/)

---

This is the Markdown version of https://toip.tools/toolkit/anon-membership/api/checkRootLog/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
