@majikah/majik-message 0.2.10 → 0.2.11
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-message.js +8 -0
- package/package.json +1 -1
package/dist/majik-message.js
CHANGED
|
@@ -328,6 +328,8 @@ export class MajikMessage {
|
|
|
328
328
|
publicKey: publicKeyBase64,
|
|
329
329
|
fingerprint: contact.fingerprint,
|
|
330
330
|
mlKey: contact.mlKey,
|
|
331
|
+
edPublicKeyBase64: contact.edPublicKeyBase64,
|
|
332
|
+
mlDsaPublicKeyBase64: contact.mlDsaPublicKeyBase64,
|
|
331
333
|
}, null, 2);
|
|
332
334
|
}
|
|
333
335
|
async exportContactAsString(contactId) {
|
|
@@ -357,6 +359,8 @@ export class MajikMessage {
|
|
|
357
359
|
fingerprint: data.fingerprint,
|
|
358
360
|
meta: { label: data.label },
|
|
359
361
|
mlKey: data.mlKey,
|
|
362
|
+
edPublicKeyBase64: data.edPublicKeyBase64,
|
|
363
|
+
mlDsaPublicKeyBase64: data.mlDsaPublicKeyBase64,
|
|
360
364
|
}));
|
|
361
365
|
return { success: true, message: "Contact imported successfully" };
|
|
362
366
|
}
|
|
@@ -397,6 +401,8 @@ export class MajikMessage {
|
|
|
397
401
|
publicKey: publicKeyBase64,
|
|
398
402
|
fingerprint: contact.fingerprint,
|
|
399
403
|
mlKey: contact.mlKey,
|
|
404
|
+
edPublicKeyBase64: contact.edPublicKeyBase64,
|
|
405
|
+
mlDsaPublicKeyBase64: contact.mlDsaPublicKeyBase64,
|
|
400
406
|
};
|
|
401
407
|
const jsonStr = JSON.stringify(jsonObj);
|
|
402
408
|
const utf8 = new TextEncoder().encode(jsonStr);
|
|
@@ -427,6 +433,8 @@ export class MajikMessage {
|
|
|
427
433
|
fingerprint: data.fingerprint,
|
|
428
434
|
meta: { label: data.label },
|
|
429
435
|
mlKey: data.mlKey,
|
|
436
|
+
edPublicKeyBase64: data.edPublicKeyBase64,
|
|
437
|
+
mlDsaPublicKeyBase64: data.mlDsaPublicKeyBase64,
|
|
430
438
|
});
|
|
431
439
|
}
|
|
432
440
|
addContact(contact) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@majikah/majik-message",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Post-quantum end-to-end encryption with ML-KEM-768. Seed phrase–based accounts. Auto-expiring messages. Offline-ready. Exportable encrypted messages. Tamper-proof threads with blockchain-like integrity. Quantum-resistant messaging.",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.11",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Zelijah",
|
|
8
8
|
"main": "./dist/index.js",
|