@majikah/majik-key 1.0.1 → 1.0.2

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.
@@ -122,8 +122,8 @@ export class MajikKeyBackup {
122
122
  }
123
123
  }
124
124
  if (pngResult && jsonResult) {
125
- const idsMatch = pngResult.data.id === jsonResult.data.id;
126
- const seedsMatch = pngResult.data.seed.join(" ") === jsonResult.data.seed.join(" ");
125
+ const idsMatch = pngResult.id === jsonResult.id;
126
+ const seedsMatch = pngResult.seed.join(" ") === jsonResult.seed.join(" ");
127
127
  if (!idsMatch || !seedsMatch) {
128
128
  throw new BackupIntegrityMismatchError("the PNG and JSON backups inside this archive do not describe the same account");
129
129
  }
@@ -1,5 +1,5 @@
1
- import { MajikUser } from "@thezelijah/majik-user/dist/core/majik-user.js";
2
- import { SerializedMajikContact } from "@majikah/majik-contact/dist/types.js";
1
+ import { MajikUser } from "@thezelijah/majik-user";
2
+ import { SerializedMajikContact } from "@majikah/majik-contact";
3
3
  export interface MajikMessageIdentityJSON {
4
4
  id: string;
5
5
  user_id: string;
@@ -14,12 +14,12 @@
14
14
  * core/keys/key-impls.ts. Frozen "legacy-v1" recipes are pinned by
15
15
  * vectors/legacy-v1.vectors.json.
16
16
  */
17
- import { MajikContactData, MajikContactMeta } from "@majikah/majik-contact/dist/types.js";
18
- import { MajikContact } from "@majikah/majik-contact/dist/contacts/majik-contact.js";
17
+ import { MajikContactData, MajikContactMeta } from "@majikah/majik-contact";
18
+ import { MajikContact } from "@majikah/majik-contact";
19
19
  import { KDF_VERSION } from "./core/crypto/constants.js";
20
20
  import type { BitcoinRawPublicKey, ED25519RawPublicKey, MajikKeyAddress, MajikKeyDangerousJSON, MajikKeyFingerprint, MajikKeyJSON, MajikKeyMetadata, MLDSA87RawPublicKey, MLKEM768RawPublicKey, MnemonicJSON, X25519RawKey } from "./core/types.js";
21
21
  import { MajikMessageIdentity } from "./core/database/system/identity.js";
22
- import { MajikUser } from "@thezelijah/majik-user/dist/core/majik-user.js";
22
+ import { MajikUser } from "@thezelijah/majik-user";
23
23
  import { MnemonicLanguage } from "./core/crypto/wordlist.js";
24
24
  import { MajikKeyWeb3Namespace, BitcoinDerivationOptions, BitcoinKeypairMaterial, SolanaKeypairMaterial, EthereumKeypairMaterial } from "./core/web3/index.js";
25
25
  import { KeyFamily, KeyId } from "./core/keys/key-id.js";
package/dist/majik-key.js CHANGED
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import { generateMnemonic as bip39GenerateMnemonic, mnemonicToSeed, validateMnemonic, } from "@scure/bip39";
18
18
  import { aesGcmDecrypt, aesGcmEncrypt, deriveKeyFromPassphraseArgon2, deriveKeyFromMnemonicArgon2, deriveKeyFromPassphrase, fingerprintFromPublicRaw, generateRandomBytes, IV_LENGTH, } from "./core/crypto/crypto-provider.js";
19
- import { MajikContact } from "@majikah/majik-contact/dist/contacts/majik-contact.js";
19
+ import { MajikContact } from "@majikah/majik-contact";
20
20
  import { arrayToBase64, base64ToArrayBuffer, utf8ToBase64, base64ToUtf8, seedStringToArray, seedArrayToString, base64ToUint8Array, } from "./core/utils.js";
21
21
  import { KDF_VERSION, LEGACY_MAJIK_MNEMONIC_SALT, BACKUP_SALT_WRITE_VERSION, backupSaltFor, } from "./core/crypto/constants.js";
22
22
  import { MajikKeyValidator } from "./core/validator.js";
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": "1.0.1",
5
+ "version": "1.0.2",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Zelijah",
8
8
  "main": "./dist/index.js",
@@ -71,7 +71,7 @@
71
71
  "test:vectors": "vitest run test/test-vectors.test.ts"
72
72
  },
73
73
  "dependencies": {
74
- "@majikah/majik-contact": "^0.1.1",
74
+ "@majikah/majik-contact": "^0.2.0",
75
75
  "@noble/curves": "^2.4.0",
76
76
  "@noble/hashes": "^2.4.0",
77
77
  "@noble/post-quantum": "^0.7.1",
@@ -83,7 +83,7 @@
83
83
  "@stablelib/pbkdf2": "^2.0.1",
84
84
  "@stablelib/sha256": "^2.0.1",
85
85
  "@stablelib/x25519": "^2.0.1",
86
- "@thezelijah/majik-user": "^1.0.10",
86
+ "@thezelijah/majik-user": "^1.1.0",
87
87
  "ed2curve": "^0.3.0",
88
88
  "hash-wasm": "^4.12.0"
89
89
  },