@monolythium/core-sdk 0.4.23 → 0.5.0

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/README.md CHANGED
@@ -290,21 +290,29 @@ const readiness = bridgeQuoteSubmitReadiness(intent, routeDisclosures);
290
290
  console.log(readiness.routeSelectionReady, readiness.quoteReady, readiness.blockedReasons);
291
291
  ```
292
292
 
293
- ### PQM-1 + ML-DSA-65 helpers
293
+ ### BIP-39 + ML-DSA-65 helpers
294
294
 
295
- Wallets and faucets can derive deterministic ML-DSA-65 backends directly in
296
- TypeScript from PQM-1 mnemonics.
295
+ Wallets and faucets derive deterministic ML-DSA-65 backends directly in
296
+ TypeScript from standard 24-word BIP-39 mnemonics. The signing seed is the
297
+ domain-separated SHAKE256 of the standard BIP-39 PBKDF2 seed:
298
+
299
+ ```text
300
+ seed64 = mnemonicToSeedSync(mnemonic, "") // HMAC-SHA512, 2048 rounds, 64 bytes
301
+ mldsa65Seed = shake256("monolythium.mldsa65.v1" || seed64, { dkLen: 32 })
302
+ ```
297
303
 
298
304
  ```ts
299
305
  import {
300
- generatePqm1Mnemonic,
301
- pqm1MnemonicToAddress,
302
- pqm1MnemonicToMlDsa65Backend,
306
+ generateMnemonic,
307
+ validateMnemonic,
308
+ mnemonicToAddress,
309
+ mnemonicToMlDsa65Backend,
303
310
  } from "@monolythium/core-sdk/crypto";
304
311
 
305
- const mnemonic = generatePqm1Mnemonic();
306
- const address = pqm1MnemonicToAddress(mnemonic);
307
- const backend = pqm1MnemonicToMlDsa65Backend(mnemonic);
312
+ const mnemonic = generateMnemonic(); // 24 words, 256-bit BIP-39
313
+ validateMnemonic(mnemonic); // true (checksum + 24-word count)
314
+ const address = mnemonicToAddress(mnemonic);
315
+ const backend = mnemonicToMlDsa65Backend(mnemonic);
308
316
  const signature = backend.sign(new Uint8Array([1, 2, 3]));
309
317
  ```
310
318