@majikah/majik-key 1.0.0 → 1.0.1

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.
@@ -1,11 +1,11 @@
1
1
  // crypto-provider.ts from @majikah/majik-key
2
- import * as ed25519 from "@stablelib/ed25519/ed25519.js";
2
+ import * as ed25519 from "@stablelib/ed25519";
3
3
  import ed2curve from "ed2curve";
4
- import { AES } from "@stablelib/aes/aes.js";
5
- import { GCM } from "@stablelib/gcm/gcm.js";
6
- import { deriveKey } from "@stablelib/pbkdf2/pbkdf2.js";
7
- import { hash, SHA256 } from "@stablelib/sha256/sha256.js";
8
- import * as x25519 from "@stablelib/x25519/x25519.js";
4
+ import { AES } from "@stablelib/aes";
5
+ import { GCM } from "@stablelib/gcm";
6
+ import { deriveKey } from "@stablelib/pbkdf2";
7
+ import { hash, SHA256 } from "@stablelib/sha256";
8
+ import * as x25519 from "@stablelib/x25519";
9
9
  import { arrayToBase64 } from "../utils.js";
10
10
  import { argon2id as nobleArgon2id } from "@noble/hashes/argon2.js";
11
11
  import { ARGON2_PARAMS } from "./constants.js";
@@ -1,4 +1,4 @@
1
- import { hash } from "@stablelib/sha256/sha256.js";
1
+ import { hash } from "@stablelib/sha256";
2
2
  import { arrayToBase64 } from "../../utils.js";
3
3
  /**
4
4
  * Utility assertions
@@ -10,15 +10,15 @@
10
10
  * New algorithms (phase 4) register here with the "hkdf-sha512-v1" recipe.
11
11
  * Derived views (web3:sol) are NOT stored keys and are not listed here.
12
12
  */
13
- import * as ed25519 from "@stablelib/ed25519/ed25519.js";
13
+ import * as ed25519 from "@stablelib/ed25519";
14
14
  import ed2curve from "ed2curve";
15
- import { hash } from "@stablelib/sha256/sha256.js";
15
+ import { hash } from "@stablelib/sha256";
16
16
  import { ml_kem512, ml_kem768, ml_kem1024, } from "@noble/post-quantum/ml-kem.js";
17
17
  import { ml_dsa44, ml_dsa65, ml_dsa87 } from "@noble/post-quantum/ml-dsa.js";
18
18
  import { slh_dsa_sha2_128s, slh_dsa_sha2_128f, slh_dsa_sha2_192s, slh_dsa_sha2_192f, slh_dsa_sha2_256s, slh_dsa_sha2_256f, slh_dsa_shake_128s, slh_dsa_shake_128f, slh_dsa_shake_192s, slh_dsa_shake_192f, slh_dsa_shake_256s, slh_dsa_shake_256f, } from "@noble/post-quantum/slh-dsa.js";
19
19
  import { falcon512, falcon1024 } from "@noble/post-quantum/falcon.js";
20
20
  import { deriveSeedHkdf } from "./hkdf-recipe.js";
21
- import { HDKey } from "@scure/bip32/index.js";
21
+ import { HDKey } from "@scure/bip32";
22
22
  import { MajikKeyError } from "../error.js";
23
23
  import { KeyId } from "./key-id.js";
24
24
  // ── frozen legacy-v1 recipe constants (do not "tidy" these) ──
@@ -26,7 +26,7 @@
26
26
  import { HDKey } from "@scure/bip32";
27
27
  import { schnorr, secp256k1 } from "@noble/curves/secp256k1.js";
28
28
  import { MAJIK_BITCOIN_STANDARD_PATH, MAJIK_BITCOIN_DOMAIN_PATH, } from "./constants.js";
29
- import { hash } from "@stablelib/sha256/sha256.js";
29
+ import { hash } from "@stablelib/sha256";
30
30
  import { base58Encode } from "../utils.js";
31
31
  import { MajikKeyError } from "../../error.js";
32
32
  import { randomBytes } from "@noble/hashes/utils.js";
@@ -25,8 +25,8 @@
25
25
  * signing Ed25519 keypair AS-IS. Simpler, but means the same private
26
26
  * key secures two different protocols. Opt-in only.
27
27
  */
28
- import * as ed25519 from "@stablelib/ed25519/ed25519.js";
29
- import { hash } from "@stablelib/sha256/sha256.js";
28
+ import * as ed25519 from "@stablelib/ed25519";
29
+ import { hash } from "@stablelib/sha256";
30
30
  import { MAJIK_SOLANA_SEED } from "./constants.js";
31
31
  import { MajikKeyError } from "../../error.js";
32
32
  import { base58Encode } from "../utils.js";
package/dist/index.d.ts CHANGED
@@ -11,3 +11,6 @@ export * from "./core/keys/key-store.js";
11
11
  export * from "./core/keys/key-impls.js";
12
12
  export * from "./core/keys/keypair-handle.js";
13
13
  export * from "./core/keys/registry.js";
14
+ export * from "./core/crypto/wordlist.js";
15
+ export * from "./core/crypto/constants.js";
16
+ export * from "./core/crypto/crypto-provider.js";
package/dist/index.js CHANGED
@@ -9,3 +9,6 @@ export * from "./core/keys/key-store.js";
9
9
  export * from "./core/keys/key-impls.js";
10
10
  export * from "./core/keys/keypair-handle.js";
11
11
  export * from "./core/keys/registry.js";
12
+ export * from "./core/crypto/wordlist.js";
13
+ export * from "./core/crypto/constants.js";
14
+ export * from "./core/crypto/crypto-provider.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.0",
5
+ "version": "1.0.1",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Zelijah",
8
8
  "main": "./dist/index.js",