Skip to content

ACLChainOps

Defined in: packages/core/src/acl-chain.ts:60

Adapter that the chain uses to talk to a concrete ACL backend.

The chain is generic over the ACL change block type (ChangesType) and the public key type (PublicKey). It does not itself know how to apply a change block to an ACL state — it delegates to this adapter.

ChangesType

PublicKey

applyChange(state, change): Promise<ACLState<ChangesType, PublicKey>>

Defined in: packages/core/src/acl-chain.ts:72

Apply a change block to a state snapshot, producing a new snapshot. Must not mutate the input snapshot — the chain re-uses snapshots across verification runs.

ACLState<ChangesType, PublicKey>

ChangesType

Promise<ACLState<ChangesType, PublicKey>>


emptyState(): ACLState<ChangesType, PublicKey>

Defined in: packages/core/src/acl-chain.ts:65

Construct a fresh, empty ACL state snapshot. Used to replay the chain from genesis when verifying.

ACLState<ChangesType, PublicKey>


isWriter(state, publicKey): Promise<boolean>

Defined in: packages/core/src/acl-chain.ts:80

Whether the given public key is a writer in the given state.

ACLState<ChangesType, PublicKey>

PublicKey

Promise<boolean>