(record, options = {})
| 73 | } |
| 74 | |
| 75 | function attachIntegrity(record, options = {}) { |
| 76 | const body = stripIntegrityFields(record); |
| 77 | const hashed = { |
| 78 | ...body, |
| 79 | _hash: hashRecord(body), |
| 80 | _hash_v: HASH_VERSION, |
| 81 | }; |
| 82 | return signRecord(hashed, options); |
| 83 | } |
| 84 | |
| 85 | function createEventId(record) { |
| 86 | return shortHash({ |
no test coverage detected