Domain.RootKeyWrap reference
RootKeyWrap
Section titled “RootKeyWrap”Source:
packages/domain/src/RootKeyWrap.tsKind: Layer · Provides:Domain.KeyWrap
Wrap each subject’s key under a root key you supply, so the
KeyStore alone opens nothing. The root key is a high-entropy
secret: 32 random bytes as text, not a password.
RootKeyWrap: Examples
Section titled “RootKeyWrap: Examples”export const BankLive = Bank.layer(BankHandlers).pipe( Layer.provide(Domain.VaultLive), Layer.provide(Domain.HostKeyStore), Layer.provide(Domain.RootKeyWrap(Config.Redacted("VAULT_ROOT_KEY"))), Layer.provide(Platform),);