Skip to content

CRDTActorBinding

Defined in: packages/core/src/crdt-actor-binding.ts:20

Hooks a CRDT provider implements so documents can bind its actors to signers.

DocType

ChangesType

actorFromDigest(digest): string

Defined in: packages/core/src/crdt-actor-binding.ts:22

Native actor identifier selected by a 32-byte derivation digest.

Uint8Array

string


attach(changes, prefix): ChangesType

Defined in: packages/core/src/crdt-actor-binding.ts:32

changes carrying prefix, an envelope or manifest.

ChangesType

Uint8Array

ChangesType


changeActors(changes): ReadonlySet<string>

Defined in: packages/core/src/crdt-actor-binding.ts:28

Actors changes adds operations for, decoded without applying them.

ChangesType

ReadonlySet<string>


detach(changes): readonly [Uint8Array<ArrayBufferLike>, ChangesType]

Defined in: packages/core/src/crdt-actor-binding.ts:34

The prefix and bare changes. Throws when changes carries no prefix.

ChangesType

readonly [Uint8Array<ArrayBufferLike>, ChangesType]


localActor(document): string

Defined in: packages/core/src/crdt-actor-binding.ts:24

Native actor the document’s next local change is made under.

DocType

string


setLocalActor(document, actor): DocType

Defined in: packages/core/src/crdt-actor-binding.ts:26

Make actor the document’s local actor. May return a new document.

DocType

string

DocType


stateActors(state): ReadonlySet<string>

Defined in: packages/core/src/crdt-actor-binding.ts:30

Actors with operations in a getSnapshot() or getHistory() state.

ChangesType

ReadonlySet<string>