@majikah/majik-signature-client 0.6.2 → 0.6.3

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.
@@ -136,7 +136,7 @@ export declare class MajikSignatureClient {
136
136
  autoLockInterval(): Promise<number | undefined>;
137
137
  isOnetimeUnlockEnabled(): Promise<boolean>;
138
138
  generateMnemonic(strength?: 128 | 256, language?: MnemonicLanguage): Promise<string>;
139
- createAccount(mnemonic: string, passphrase: string, label?: string): Promise<{
139
+ createAccount(mnemonic: string, passphrase: string, label?: string, mnemonicLanguage?: MnemonicLanguage): Promise<{
140
140
  id: string;
141
141
  fingerprint: string;
142
142
  backup: string;
@@ -218,9 +218,11 @@ export class MajikSignatureClient {
218
218
  async generateMnemonic(strength = 128, language = "en") {
219
219
  return await MajikKeyManager.generateMnemonic(strength, language);
220
220
  }
221
- async createAccount(mnemonic, passphrase, label) {
221
+ async createAccount(mnemonic, passphrase, label, mnemonicLanguage = "en") {
222
222
  try {
223
- const key = await MajikKey.create(mnemonic, passphrase, label);
223
+ const key = await MajikKey.create(mnemonic, passphrase, label, {
224
+ mnemonicLanguage: mnemonicLanguage,
225
+ });
224
226
  await this._keys.save(key);
225
227
  const contact = key.toContact();
226
228
  this._registerOwnAccount(contact);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@majikah/majik-signature-client",
3
3
  "type": "module",
4
4
  "description": "Majik Signature Client is a hybrid post-quantum content signing and verification library for the Majikah ecosystem. Built on top of Majik Key, it provides tamper-proof, forgery-resistant digital signatures for any content format — using a dual-algorithm architecture that combines classical Ed25519 with post-quantum ML-DSA-87 (FIPS-204).",
5
- "version": "0.6.2",
5
+ "version": "0.6.3",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Zelijah",
8
8
  "main": "./dist/index.js",
@@ -55,8 +55,8 @@
55
55
  "@majikah/majik-cjson": "^0.0.3",
56
56
  "@majikah/majik-contact": "^0.0.6",
57
57
  "@majikah/majik-file": "^0.1.12",
58
- "@majikah/majik-key": "^0.3.2",
59
- "@majikah/majik-signature": "^0.2.0",
58
+ "@majikah/majik-key": "^0.3.3",
59
+ "@majikah/majik-signature": "^0.2.1",
60
60
  "@stablelib/ed25519": "^2.1.0",
61
61
  "ed2curve": "^0.3.0",
62
62
  "fflate": "^0.8.3"