Domain.HostKeyStore reference
HostKeyStore
Section titled “HostKeyStore”Source:
packages/domain/src/HostKeyStore.tsKind: Layer · Provides:Domain.KeyStore
Keys kept on the model’s own host, one object per subject: a Durable
Object on Cloudflare, an actor on Rivet, an entity on Effect Cluster, and
memory on Domain.InMemory. Each key lives in its object’s own storage,
apart from every aggregate’s.
HostKeyStore: Examples
Section titled “HostKeyStore: Examples”const Platform = DomainCloudflare.layerDurableObjects();
export const BankLive = Bank.layer(BankHandlers).pipe( Layer.provide(Domain.VaultLive), Layer.provide(Domain.HostKeyStore), Layer.provide(Domain.NoKeyWrap), Layer.provide(Platform),);