@majikah/majik-message 0.2.18 → 0.2.19
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 +3 -7
- package/package.json +4 -4
package/dist/majik-message.js
CHANGED
|
@@ -197,10 +197,7 @@ export class MajikMessage {
|
|
|
197
197
|
throw new Error("Account with the same ID already exists");
|
|
198
198
|
}
|
|
199
199
|
const keyContact = key.toContact();
|
|
200
|
-
|
|
201
|
-
const reParsedContact = MajikContact.fromJSON(contactJSON);
|
|
202
|
-
console.log("Account: ", key);
|
|
203
|
-
this.addOwnAccount(reParsedContact);
|
|
200
|
+
this.addOwnAccount(keyContact);
|
|
204
201
|
return { id: key.id, fingerprint: key.fingerprint };
|
|
205
202
|
}
|
|
206
203
|
/**
|
|
@@ -209,9 +206,8 @@ export class MajikMessage {
|
|
|
209
206
|
async createAccountFromMnemonic(mnemonic, passphrase, label) {
|
|
210
207
|
const key = await MajikKey.create(mnemonic, passphrase, label);
|
|
211
208
|
await MajikKeyStore.addMajikKey(key);
|
|
212
|
-
const keyContact =
|
|
213
|
-
|
|
214
|
-
this.addOwnAccount(reParsedContact);
|
|
209
|
+
const keyContact = key.toContact();
|
|
210
|
+
this.addOwnAccount(keyContact);
|
|
215
211
|
return { id: key.id, fingerprint: key.fingerprint, backup: key.backup };
|
|
216
212
|
}
|
|
217
213
|
addOwnAccount(account) {
|
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.19",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Zelijah",
|
|
8
8
|
"main": "./dist/index.js",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"@bokuweb/zstd-wasm": "^0.0.27",
|
|
83
83
|
"@majikah/majik-contact": "^0.0.1",
|
|
84
84
|
"@majikah/majik-envelope": "^0.0.1",
|
|
85
|
-
"@majikah/majik-file": "^0.0.
|
|
86
|
-
"@majikah/majik-key": "^0.2.
|
|
87
|
-
"@majikah/majik-signature": "^0.0.
|
|
85
|
+
"@majikah/majik-file": "^0.0.23",
|
|
86
|
+
"@majikah/majik-key": "^0.2.4",
|
|
87
|
+
"@majikah/majik-signature": "^0.0.16",
|
|
88
88
|
"@noble/hashes": "^2.0.1",
|
|
89
89
|
"@noble/post-quantum": "^0.5.4",
|
|
90
90
|
"@scure/bip39": "^1.6.0",
|