Function
cryptoAlgorithmEquals
(self: CryptoAlgorithm, that: CryptoAlgorithm)
Source from the content-addressed store, hash-verified
| 14416 | } |
| 14417 | |
| 14418 | const 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 | |
| 14422 | const cryptoAlgorithmPayload = (algorithm: CryptoAlgorithm): Json => { |
| 14423 | const payload: { [key: string]: Json } = { name: algorithm.name } |
Tested by
no test coverage detected