@majikah/majik-signature-client 0.6.7 → 0.6.8
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.
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
5
|
+
"version": "0.6.8",
|
|
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.
|
|
57
|
+
"@majikah/majik-file": "^0.2.3",
|
|
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.
|
|
66
|
+
"@types/node": "^26.1.2"
|
|
67
67
|
}
|
|
68
68
|
}
|