@thezelijah/majik-message 1.0.6 → 1.0.7
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.
|
@@ -69,8 +69,8 @@ export class MajikMessageIdentity {
|
|
|
69
69
|
assertString(label, "label");
|
|
70
70
|
const generatedID = autogenerateID();
|
|
71
71
|
const timestamp = new Date().toISOString();
|
|
72
|
-
const phash = sha256(`${user.id}:${account.id}:${generatedID}`);
|
|
73
72
|
const publicKey = account.publicKeyBase64;
|
|
73
|
+
const phash = sha256(`${user.id}:${publicKey}:${generatedID}`);
|
|
74
74
|
return new MajikMessageIdentity({
|
|
75
75
|
id: generatedID,
|
|
76
76
|
userId: user.id,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@thezelijah/majik-message",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Encrypt and decrypt messages on any website. Secure chats with keypairs and seed-based accounts. Open source.",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.7",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Zelijah",
|
|
8
8
|
"main": "./dist/index.js",
|