NodeCrypto.ts
NodeCrypto.ts overview
Section titled “NodeCrypto.ts overview”Node-compatible implementation of Effect’s Crypto service.
This module builds the service from node:crypto, using randomBytes for
random data and createHash for supported digest algorithms. It exports
make as the concrete service value and layer for providing it through
Effect context.
Since v1.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”constructors
Section titled “constructors”The default Node.js Crypto service implementation.
Signature
declare const make: EffectCrypto.CryptoSince v1.0.0
layers
Section titled “layers”Layer that provides the Node.js Crypto service implementation.
Signature
declare const layer: Layer.Layer<EffectCrypto.Crypto, never, never>Since v1.0.0