Unverified Commit 544f269e authored by ggrund-tsi's avatar ggrund-tsi Committed by GitHub
Browse files

cbor omitUndefinedProperties --> true (#83)


Co-authored-by: default avatarGordon Grund <gordon.grund@outlook.de>
parent fcc31e19
......@@ -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 => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment