import { type AccessControlScheme } from "https://deno.land/x/willow@0.2.1/mod.deno.ts";
Configures the types of ReadCapability
, Receiver
, and SyncSignature
for the Willow General Purpose Sync Protocol.
definition: { getReceiver: (cap: ReadCapability) => Receiver; getSecretKey: (receiver: Receiver) => ReceiverSecretKey; getGrantedArea: (cap: ReadCapability) => Area<SubspaceId>; getGrantedNamespace: (cap: ReadCapability) => NamespaceId; signatures: SignatureScheme<Receiver, ReceiverSecretKey, SyncSignature>; isValidCap: (cap: ReadCapability) => Promise<boolean>; encodings: { readCapability: ReadCapEncodingScheme<ReadCapability, NamespaceId, SubspaceId>; syncSignature: EncodingScheme<SyncSignature>; }; }