Skip to content

Commit

Permalink
cbor omitUndefinedProperties --> true (#83)
Browse files Browse the repository at this point in the history
Co-authored-by: Gordon Grund <[email protected]>
  • Loading branch information
ggrund-tsi and ggrund-tsi authored May 31, 2021
1 parent fcc31e1 commit 544f269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc/edgcProcessor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const encodeCBOR = (certData: any, certMetaData: CertificateMetaData): Buffer =>
v1.set((1 as number), certData)
cborMap.set((-260 as number), v1);

return cbor.encode(cborMap);
return cbor.encodeOne(cborMap, { omitUndefinedProperties: true });
}

const computeCOSEHash = (coseSigData: Buffer): string => {
Expand Down

0 comments on commit 544f269

Please sign in to comment.