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.
Type Parameters
Section titled “Type Parameters”ChangesType
Section titled “ChangesType”ChangesType
PublicKey
Section titled “PublicKey”PublicKey
Methods
Section titled “Methods”applyChange()
Section titled “applyChange()”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.
Parameters
Section titled “Parameters”ACLState<ChangesType, PublicKey>
change
Section titled “change”ChangesType
Returns
Section titled “Returns”Promise<ACLState<ChangesType, PublicKey>>
emptyState()
Section titled “emptyState()”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.
Returns
Section titled “Returns”ACLState<ChangesType, PublicKey>
isWriter()
Section titled “isWriter()”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.
Parameters
Section titled “Parameters”ACLState<ChangesType, PublicKey>
publicKey
Section titled “publicKey”PublicKey
Returns
Section titled “Returns”Promise<boolean>