@majikah/majik-signature-client 0.6.7 → 0.6.9

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.
@@ -81,7 +81,7 @@ export const DEFAULT_USER_APP_PREFERENCES = {
81
81
  maxCount: 25,
82
82
  },
83
83
  },
84
- signing: { autoSeal: false },
84
+ signing: { autoSeal: false, defaultToTSA: false },
85
85
  privacy: {
86
86
  shareAnalytics: true,
87
87
  },
@@ -62,7 +62,6 @@ export class MajikSignatureStamp {
62
62
  id,
63
63
  data,
64
64
  identity,
65
- context: "user_upload",
66
65
  originalName: name,
67
66
  mimeType,
68
67
  userId: identity.fingerprint,
@@ -37,6 +37,7 @@ export interface HistoryPreferences {
37
37
  }
38
38
  export interface SigningPreferences {
39
39
  autoSeal?: boolean;
40
+ defaultToTSA?: boolean;
40
41
  }
41
42
  export interface PrivacyPreferences {
42
43
  shareAnalytics?: boolean;
@@ -9,10 +9,10 @@
9
9
  * to Majik Signature: the contact directory, stamps, signing, verification,
10
10
  * seal/multi-sig, and backup/restore.
11
11
  *
12
- * Designed to be used alongside MajikMessage in the same webapp.
12
+ * Designed to be used alongside MajikSignature in the same webapp.
13
13
  * Accounts are automatically shared via the base class's keyManager.
14
14
  * Contacts are shared by passing the same MajikContactManager instance
15
- * to both MajikMessage and MajikSignatureClient at construction time.
15
+ * to both MajikSignature and MajikSignatureClient at construction time.
16
16
  */
17
17
  import { MajikKey, MajikKeyAddress } from "@majikah/majik-key";
18
18
  import { MajikSignature } from "@majikah/majik-signature";
@@ -108,6 +108,7 @@ export declare class MajikSignatureClient extends MajikKeyClient<MajikContact, M
108
108
  resetUserAppPreferences(): Promise<void>;
109
109
  isAnalyticsEnabled(): Promise<boolean>;
110
110
  isAutoSealEnabled(): Promise<boolean>;
111
+ isDefaultToTSAEnabled(): Promise<boolean>;
111
112
  isAutoLockOnMinimizeEnabled(): Promise<boolean>;
112
113
  autoLockInterval(): Promise<number | undefined>;
113
114
  isOnetimeUnlockEnabled(): Promise<boolean>;
@@ -9,10 +9,10 @@
9
9
  * to Majik Signature: the contact directory, stamps, signing, verification,
10
10
  * seal/multi-sig, and backup/restore.
11
11
  *
12
- * Designed to be used alongside MajikMessage in the same webapp.
12
+ * Designed to be used alongside MajikSignature in the same webapp.
13
13
  * Accounts are automatically shared via the base class's keyManager.
14
14
  * Contacts are shared by passing the same MajikContactManager instance
15
- * to both MajikMessage and MajikSignatureClient at construction time.
15
+ * to both MajikSignature and MajikSignatureClient at construction time.
16
16
  */
17
17
  import { MajikSignature } from "@majikah/majik-signature";
18
18
  import { base64ToUint8Array } from "./core/utils/utilities";
@@ -147,6 +147,10 @@ export class MajikSignatureClient extends MajikKeyClient {
147
147
  const appPreferences = await this.stateManager.getUserAppPreferences();
148
148
  return appPreferences.signing.autoSeal ?? false;
149
149
  }
150
+ async isDefaultToTSAEnabled() {
151
+ const appPreferences = await this.stateManager.getUserAppPreferences();
152
+ return appPreferences.signing.defaultToTSA ?? false;
153
+ }
150
154
  async isAutoLockOnMinimizeEnabled() {
151
155
  const appPreferences = await this.stateManager.getUserAppPreferences();
152
156
  return appPreferences.security?.key?.autoLockOnMinimize ?? false;
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.6.7",
5
+ "version": "0.6.9",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Zelijah",
8
8
  "main": "./dist/index.js",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@majikah/majik-cjson": "^0.0.3",
56
56
  "@majikah/majik-contact": "^0.0.6",
57
- "@majikah/majik-file": "^0.1.12",
57
+ "@majikah/majik-file": "^0.2.4",
58
58
  "@majikah/majik-key": "^0.3.3",
59
59
  "@majikah/majik-key-client": "^0.1.5",
60
60
  "@majikah/majik-signature": "^0.2.1",
@@ -63,6 +63,6 @@
63
63
  "fflate": "^0.8.3"
64
64
  },
65
65
  "devDependencies": {
66
- "@types/node": "^26.1.1"
66
+ "@types/node": "^26.1.2"
67
67
  }
68
68
  }