(record)
| 21 | } |
| 22 | |
| 23 | function stripIntegrityFields(record) { |
| 24 | const { |
| 25 | _hash, |
| 26 | _hash_v, |
| 27 | _signature, |
| 28 | _signature_v, |
| 29 | _signature_alg, |
| 30 | _signature_key_id, |
| 31 | ...body |
| 32 | } = record || {}; |
| 33 | return body; |
| 34 | } |
| 35 | |
| 36 | function hashRecord(record) { |
| 37 | const canonical = JSON.stringify(canonicalize(stripIntegrityFields(record))); |
no outgoing calls
no test coverage detected