@owf/mdoc 0.9.3-alpha-20261102161059 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1470,11 +1470,10 @@ var DeviceAuth = class extends CborStructure {
|
|
|
1470
1470
|
if (deviceSignature) {
|
|
1471
1471
|
try {
|
|
1472
1472
|
onCheck({
|
|
1473
|
-
status: await
|
|
1474
|
-
toBeVerified: deviceSignature.toBeSigned({ detachedPayload: deviceAuthenticationBytes }),
|
|
1473
|
+
status: await deviceSignature.verifySignature({
|
|
1475
1474
|
key: deviceKey,
|
|
1476
|
-
|
|
1477
|
-
}) ? "PASSED" : "FAILED",
|
|
1475
|
+
detachedPayload: deviceAuthenticationBytes
|
|
1476
|
+
}, ctx.cose.sign1) ? "PASSED" : "FAILED",
|
|
1478
1477
|
check: "Device signature must be valid"
|
|
1479
1478
|
});
|
|
1480
1479
|
} catch (err) {
|