@majikah/majik-signature-client 0.7.2 → 0.7.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.
@@ -1222,6 +1222,9 @@ export class MajikSignatureClient extends MajikKeyClient {
1222
1222
  }
1223
1223
  }
1224
1224
  if (result.contentHash) {
1225
+ const isSealed = await MajikSignature.isSealed(file);
1226
+ const signatures = await MajikSignature.extractFrom(file);
1227
+ const firstSigHasTSA = signatures[0].hasTSA;
1225
1228
  this._recordHistory(this.getActiveAccountKey()?.fingerprint, {
1226
1229
  reference_id: result.contentHash,
1227
1230
  historyType: HistoryTypes.VERIFY,
@@ -1232,8 +1235,8 @@ export class MajikSignatureClient extends MajikKeyClient {
1232
1235
  operation: {
1233
1236
  digest: result.contentHash,
1234
1237
  detached: false,
1235
- sealed: false,
1236
- tsa: false,
1238
+ sealed: isSealed ?? false,
1239
+ tsa: firstSigHasTSA ?? false,
1237
1240
  },
1238
1241
  valid: result.valid,
1239
1242
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@majikah/majik-signature-client",
3
3
  "type": "module",
4
4
  "description": "Majik Signature Client is a hybrid post-quantum content signing and verification library for the Majikah ecosystem. Built on top of Majik Key Client, it provides tamper-proof, forgery-resistant digital signatures for any content format — using a dual-algorithm architecture that combines classical Ed25519 with post-quantum ML-DSA-87 (FIPS-204).",
5
- "version": "0.7.2",
5
+ "version": "0.7.3",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Zelijah",
8
8
  "main": "./dist/index.js",