parseApprovalRecord()
parseApprovalRecord(
content):ApprovalRecordV1|undefined
Defined in: core/src/types/approval.ts:217
Read an approval record file. The bytes must be valid UTF-8, pass isApprovalRecordV1 and equal the UTF-8 bytes of serializeApprovalRecord of the record, so a record with other key order, escapes, line endings or a byte order mark is refused.
Parameters
content
Uint8Array
File content as read from disk
Returns
ApprovalRecordV1 | undefined
The record, or undefined when the content is no valid record