@majikah/majik-key 0.2.2 → 0.2.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.
- package/dist/majik-key.d.ts +2 -0
- package/dist/majik-key.js +6 -0
- package/package.json +1 -1
package/dist/majik-key.d.ts
CHANGED
|
@@ -85,6 +85,8 @@ export interface MajikKeyConstructorOptions {
|
|
|
85
85
|
mlDsaPublicKey?: Uint8Array;
|
|
86
86
|
encryptedMlDsaSecretKey?: ArrayBuffer;
|
|
87
87
|
encryptedMlDsaSecretKeyBase64?: string;
|
|
88
|
+
edSecretKey?: Uint8Array;
|
|
89
|
+
mlDsaSecretKey?: Uint8Array;
|
|
88
90
|
}
|
|
89
91
|
export declare class MajikKey {
|
|
90
92
|
private readonly _id;
|
package/dist/majik-key.js
CHANGED
|
@@ -83,6 +83,8 @@ export class MajikKey {
|
|
|
83
83
|
this._mlDsaPublicKey = options.mlDsaPublicKey;
|
|
84
84
|
this._encryptedMlDsaSecretKey = options.encryptedMlDsaSecretKey;
|
|
85
85
|
this._encryptedMlDsaSecretKeyBase64 = options.encryptedMlDsaSecretKeyBase64;
|
|
86
|
+
this._edSecretKey = options.edSecretKey;
|
|
87
|
+
this._mlDsaSecretKey = options.mlDsaSecretKey;
|
|
86
88
|
}
|
|
87
89
|
// ── Getters ─────────────────────────────────────────────────────────────────
|
|
88
90
|
get id() {
|
|
@@ -184,6 +186,8 @@ export class MajikKey {
|
|
|
184
186
|
mlDsaPublicKey: identity.mlDsaPublicKey,
|
|
185
187
|
encryptedMlDsaSecretKey: identity.encryptedMlDsaSecretKey,
|
|
186
188
|
encryptedMlDsaSecretKeyBase64: arrayBufferToBase64(identity.encryptedMlDsaSecretKey),
|
|
189
|
+
edSecretKey: identity.edSecretKey,
|
|
190
|
+
mlDsaSecretKey: identity.mlDsaSecretKey,
|
|
187
191
|
});
|
|
188
192
|
}
|
|
189
193
|
catch (err) {
|
|
@@ -608,6 +612,8 @@ export class MajikKey {
|
|
|
608
612
|
mlDsaPublicKey: identity.mlDsaPublicKey,
|
|
609
613
|
encryptedMlDsaSecretKey: identity.encryptedMlDsaSecretKey,
|
|
610
614
|
encryptedMlDsaSecretKeyBase64: arrayBufferToBase64(identity.encryptedMlDsaSecretKey),
|
|
615
|
+
edSecretKey: identity.edSecretKey,
|
|
616
|
+
mlDsaSecretKey: identity.mlDsaSecretKey,
|
|
611
617
|
});
|
|
612
618
|
}
|
|
613
619
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@majikah/majik-key",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "A post-quantum ready seed phrase account library for the Majikah ecosystem. Manages deterministic X25519 and ML-KEM-768 identities with Argon2id protection and seamless legacy account migration.",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Zelijah",
|
|
8
8
|
"main": "./dist/index.js",
|