MCPcopy Create free account
hub / github.com/Effect-TS/effect / cryptoAlgorithmEquals

Function cryptoAlgorithmEquals

packages/effect/src/Schema.ts:14418–14420  ·  view source on GitHub ↗
(self: CryptoAlgorithm, that: CryptoAlgorithm)

Source from the content-addressed store, hash-verified

14416}
14417
14418const cryptoAlgorithmEquals = (self: CryptoAlgorithm, that: CryptoAlgorithm): boolean =>
14419 self === that ||
14420 (self.name === that.name && self.hash?.name === that.hash?.name && self.saltLength === that.saltLength)
14421
14422const cryptoAlgorithmPayload = (algorithm: CryptoAlgorithm): Json => {
14423 const payload: { [key: string]: Json } = { name: algorithm.name }

Callers 1

declareCryptoKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected