@parmanasystems/crypto 1.71.36 → 1.74.0
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/README.md +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ import { signManifest } from "@parmanasystems/crypto";
|
|
|
64
64
|
|
|
65
65
|
// Both arguments are required
|
|
66
66
|
const signature = signManifest(
|
|
67
|
-
"./policies/loan-approval/
|
|
67
|
+
"./policies/loan-approval/1.0.0/bundle.manifest.json", // path to manifest
|
|
68
68
|
"./trust/root.key" // path to Ed25519 private key PEM
|
|
69
69
|
);
|
|
70
70
|
console.log(signature); // base64-encoded Ed25519 signature
|
|
@@ -77,7 +77,7 @@ import { verifySignature } from "@parmanasystems/crypto";
|
|
|
77
77
|
|
|
78
78
|
// All three arguments are required
|
|
79
79
|
const ok = verifySignature(
|
|
80
|
-
"./policies/loan-approval/
|
|
80
|
+
"./policies/loan-approval/1.0.0/bundle.manifest.json", // path to manifest
|
|
81
81
|
signature, // base64 signature string
|
|
82
82
|
"./trust/root.pub" // path to Ed25519 public key PEM
|
|
83
83
|
);
|
|
@@ -91,7 +91,7 @@ import { signBundle } from "@parmanasystems/crypto";
|
|
|
91
91
|
|
|
92
92
|
// Signs bundle.manifest.json in the directory and writes bundle.sig
|
|
93
93
|
await signBundle({
|
|
94
|
-
bundlePath: "./policies/loan-approval/
|
|
94
|
+
bundlePath: "./policies/loan-approval/1.0.0",
|
|
95
95
|
privateKeyPath: "./trust/root.key",
|
|
96
96
|
});
|
|
97
97
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parmanasystems/crypto",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.74.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@parmanasystems/bundle": "^1.
|
|
21
|
+
"@parmanasystems/bundle": "^1.74.0"
|
|
22
22
|
},
|
|
23
23
|
"description": "Signing and verification primitives for deterministic governance infrastructure.",
|
|
24
24
|
"license": "Apache-2.0",
|