@majikah/majik-universal-id-client 0.0.14 → 0.0.16
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.
|
@@ -137,7 +137,7 @@ export declare class MajikKeyManager {
|
|
|
137
137
|
ensureUnlocked(id: string, promptFn?: (id: string) => string | Promise<string>): Promise<CryptoKey | {
|
|
138
138
|
raw: Uint8Array;
|
|
139
139
|
}>;
|
|
140
|
-
static generateMnemonic(strength?: 128 | 256): string
|
|
140
|
+
static generateMnemonic(strength?: 128 | 256): Promise<string>;
|
|
141
141
|
exportMnemonicBackup(id: string, mnemonic: string): Promise<string>;
|
|
142
142
|
importFromMnemonicBackup(backupBase64: string, mnemonic: string, passphrase: string, label?: string): Promise<MajikKey>;
|
|
143
143
|
/**
|
|
@@ -282,8 +282,8 @@ export class MajikKeyManager {
|
|
|
282
282
|
return this.getPrivateKey(id);
|
|
283
283
|
}
|
|
284
284
|
// ── Mnemonic / backup helpers ─────────────────────────────────────────────
|
|
285
|
-
static generateMnemonic(strength = 128) {
|
|
286
|
-
return MajikKey.generateMnemonic(strength);
|
|
285
|
+
static async generateMnemonic(strength = 128) {
|
|
286
|
+
return await MajikKey.generateMnemonic(strength);
|
|
287
287
|
}
|
|
288
288
|
async exportMnemonicBackup(id, mnemonic) {
|
|
289
289
|
const key = this._cache.get(id);
|
|
@@ -119,7 +119,7 @@ export declare class MajikUniversalIdClient {
|
|
|
119
119
|
* Ensures the account is unlocked and has ML-KEM keys.
|
|
120
120
|
*/
|
|
121
121
|
private _resolveIdentity;
|
|
122
|
-
generateMnemonic(strength?: 128 | 256): string
|
|
122
|
+
generateMnemonic(strength?: 128 | 256): Promise<string>;
|
|
123
123
|
createAccount(mnemonic: string, passphrase: string, label?: string): Promise<{
|
|
124
124
|
id: string;
|
|
125
125
|
fingerprint: string;
|
|
@@ -206,8 +206,8 @@ export class MajikUniversalIdClient {
|
|
|
206
206
|
// ==========================================================================
|
|
207
207
|
// ── ACCOUNT MANAGEMENT ────────────────────────────────────────────────────
|
|
208
208
|
// ==========================================================================
|
|
209
|
-
generateMnemonic(strength = 128) {
|
|
210
|
-
return MajikKeyManager.generateMnemonic(strength);
|
|
209
|
+
async generateMnemonic(strength = 128) {
|
|
210
|
+
return await MajikKeyManager.generateMnemonic(strength);
|
|
211
211
|
}
|
|
212
212
|
async createAccount(mnemonic, passphrase, label) {
|
|
213
213
|
try {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@majikah/majik-universal-id-client",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "The core universal identity model for the Majikah ecosystem, featuring hybrid PQC signatures (Ed25519 + ML-DSA), ML-KEM-768 private info encryption, and multi-stage Didit verification graduation.",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.16",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Zelijah",
|
|
8
8
|
"main": "./dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/Majikah/majik-universal-id
|
|
16
|
+
"url": "git+https://github.com/Majikah/majik-universal-id.git"
|
|
17
17
|
},
|
|
18
18
|
"funding": {
|
|
19
19
|
"type": "github",
|
|
@@ -34,22 +34,26 @@
|
|
|
34
34
|
"zero-trust-identity",
|
|
35
35
|
"pqc"
|
|
36
36
|
],
|
|
37
|
-
"homepage": "https://github.com/Majikah/majik-universal-id
|
|
37
|
+
"homepage": "https://github.com/Majikah/majik-universal-id#readme",
|
|
38
38
|
"bugs": {
|
|
39
|
-
"url": "https://github.com/Majikah/majik-universal-id
|
|
39
|
+
"url": "https://github.com/Majikah/majik-universal-id/issues"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"update": "npm install @majikah/majik-key@latest @majikah/majik-universal-id@latest @majikah/majik-signature@latest @majikah/majik-contact@latest",
|
|
43
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
44
43
|
"build": "tsc",
|
|
45
|
-
"
|
|
44
|
+
"typecheck": "tsc --noEmit",
|
|
45
|
+
"prepublishOnly": "npm run build",
|
|
46
|
+
"package": "npm run build && npm version patch && git push && git push --tags",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"test:watch": "vitest"
|
|
46
49
|
},
|
|
47
50
|
"dependencies": {
|
|
48
|
-
"@majikah/majik-contact": "^0.0.
|
|
49
|
-
"@majikah/majik-
|
|
50
|
-
"@majikah/majik-
|
|
51
|
+
"@majikah/majik-contact": "^0.0.6",
|
|
52
|
+
"@majikah/majik-envelope": "^0.0.6",
|
|
53
|
+
"@majikah/majik-key": "^0.2.11",
|
|
54
|
+
"@majikah/majik-signature": "^0.0.28",
|
|
51
55
|
"@majikah/majik-slink": "^0.0.2",
|
|
52
|
-
"@majikah/majik-universal-id": "^0.0.
|
|
56
|
+
"@majikah/majik-universal-id": "^0.0.14"
|
|
53
57
|
},
|
|
54
58
|
"devDependencies": {
|
|
55
59
|
"@types/node": "^25.5.0"
|