@bcts/provenance-mark 1.0.0-alpha.13 → 1.0.0-alpha.14
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.iife.js +2 -2
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/envelope.ts +2 -2
- package/src/generator.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcts/provenance-mark",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Blockchain Commons Provenance Mark for TypeScript - A cryptographically-secured system for establishing and verifying the authenticity of works",
|
|
6
6
|
"license": "BSD-2-Clause-Patent",
|
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
"vitest": "^4.0.16"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@bcts/dcbor": "^1.0.0-alpha.
|
|
83
|
-
"@bcts/envelope": "^1.0.0-alpha.
|
|
84
|
-
"@bcts/rand": "^1.0.0-alpha.
|
|
85
|
-
"@bcts/tags": "^1.0.0-alpha.
|
|
86
|
-
"@bcts/uniform-resources": "^1.0.0-alpha.
|
|
82
|
+
"@bcts/dcbor": "^1.0.0-alpha.14",
|
|
83
|
+
"@bcts/envelope": "^1.0.0-alpha.14",
|
|
84
|
+
"@bcts/rand": "^1.0.0-alpha.14",
|
|
85
|
+
"@bcts/tags": "^1.0.0-alpha.14",
|
|
86
|
+
"@bcts/uniform-resources": "^1.0.0-alpha.14",
|
|
87
87
|
"@noble/ciphers": "^2.1.1",
|
|
88
88
|
"@noble/hashes": "^2.0.1"
|
|
89
89
|
}
|
package/src/envelope.ts
CHANGED
|
@@ -126,8 +126,8 @@ export function provenanceMarkGeneratorToEnvelope(generator: ProvenanceMarkGener
|
|
|
126
126
|
// Create envelope with chain ID as subject
|
|
127
127
|
let envelope = Envelope.new(generator.chainId());
|
|
128
128
|
|
|
129
|
-
// Add type assertion
|
|
130
|
-
envelope = envelope.
|
|
129
|
+
// Add type assertion (using addType() which uses IS_A KnownValue, like Rust's add_type())
|
|
130
|
+
envelope = envelope.addType("provenance-generator");
|
|
131
131
|
|
|
132
132
|
// Add resolution
|
|
133
133
|
envelope = envelope.addAssertion("res", resolutionToNumber(generator.res()));
|
package/src/generator.ts
CHANGED
|
@@ -206,8 +206,8 @@ export class ProvenanceMarkGenerator {
|
|
|
206
206
|
// Create envelope with chain ID as subject
|
|
207
207
|
let envelope = Envelope.new(this._chainId);
|
|
208
208
|
|
|
209
|
-
// Add type assertion
|
|
210
|
-
envelope = envelope.
|
|
209
|
+
// Add type assertion (using addType() which uses IS_A KnownValue, like Rust's add_type())
|
|
210
|
+
envelope = envelope.addType("provenance-generator");
|
|
211
211
|
|
|
212
212
|
// Add resolution
|
|
213
213
|
envelope = envelope.addAssertion("res", resolutionToNumber(this._res));
|