@locuschain/lib 0.2.12 → 0.2.13

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.
Binary file
@@ -460,11 +460,26 @@ define(['exports', '../chunks/address-class-CDo766LJ', '../chunks/tx-type-BFIIZu
460
460
  AUTO: 0,
461
461
  GRANT_ONLY: 1
462
462
  });
463
+ // 키 알고리즘 식별자. createAccountAndKeystore / deriveKeysFromMnemonic 등의
464
+ // algoMaster / algoNormal / keyAlgo 파라미터에 쓰는 문자열 값.
465
+ // master 는 보통 하이브리드(*+ED25519), normal 은 ED25519 또는 단일/하이브리드.
466
+ const KeyAlgo = Object.freeze({
467
+ ED25519: 'ED25519',
468
+ FALCON: 'FALCON',
469
+ HAETAE: 'HAETAE',
470
+ AIMER: 'AIMER',
471
+ DILITHIUM: 'DILITHIUM',
472
+ FALCON_ED25519: 'FALCON+ED25519',
473
+ HAETAE_ED25519: 'HAETAE+ED25519',
474
+ AIMER_ED25519: 'AIMER+ED25519',
475
+ DILITHIUM_ED25519: 'DILITHIUM+ED25519'
476
+ });
463
477
 
464
478
  exports.AddressClass = AddressClass;
465
479
  exports.Currency = Currency;
466
480
  exports.FeeType = FeeType;
467
481
  exports.GRANT_COST_PER_TX = GRANT_COST_PER_TX;
482
+ exports.KeyAlgo = KeyAlgo;
468
483
  exports.MaxVMRewardsCount = MaxVMRewardsCount;
469
484
  exports.TxType = TxType;
470
485
  exports.TxTypes = TxTypes;
@@ -463,11 +463,26 @@ const FeeType = Object.freeze({
463
463
  AUTO: 0,
464
464
  GRANT_ONLY: 1
465
465
  });
466
+ // 키 알고리즘 식별자. createAccountAndKeystore / deriveKeysFromMnemonic 등의
467
+ // algoMaster / algoNormal / keyAlgo 파라미터에 쓰는 문자열 값.
468
+ // master 는 보통 하이브리드(*+ED25519), normal 은 ED25519 또는 단일/하이브리드.
469
+ const KeyAlgo = Object.freeze({
470
+ ED25519: 'ED25519',
471
+ FALCON: 'FALCON',
472
+ HAETAE: 'HAETAE',
473
+ AIMER: 'AIMER',
474
+ DILITHIUM: 'DILITHIUM',
475
+ FALCON_ED25519: 'FALCON+ED25519',
476
+ HAETAE_ED25519: 'HAETAE+ED25519',
477
+ AIMER_ED25519: 'AIMER+ED25519',
478
+ DILITHIUM_ED25519: 'DILITHIUM+ED25519'
479
+ });
466
480
 
467
481
  exports.AddressClass = AddressClass;
468
482
  exports.Currency = Currency;
469
483
  exports.FeeType = FeeType;
470
484
  exports.GRANT_COST_PER_TX = GRANT_COST_PER_TX;
485
+ exports.KeyAlgo = KeyAlgo;
471
486
  exports.MaxVMRewardsCount = MaxVMRewardsCount;
472
487
  exports.TxType = TxType;
473
488
  exports.TxTypes = TxTypes;
@@ -524,5 +524,17 @@ export declare const FeeType: Readonly<{
524
524
  readonly GRANT_ONLY: 1;
525
525
  }>;
526
526
  export type FeeType = (typeof FeeType)[keyof typeof FeeType];
527
+ export declare const KeyAlgo: Readonly<{
528
+ readonly ED25519: "ED25519";
529
+ readonly FALCON: "FALCON";
530
+ readonly HAETAE: "HAETAE";
531
+ readonly AIMER: "AIMER";
532
+ readonly DILITHIUM: "DILITHIUM";
533
+ readonly FALCON_ED25519: "FALCON+ED25519";
534
+ readonly HAETAE_ED25519: "HAETAE+ED25519";
535
+ readonly AIMER_ED25519: "AIMER+ED25519";
536
+ readonly DILITHIUM_ED25519: "DILITHIUM+ED25519";
537
+ }>;
538
+ export type KeyAlgo = (typeof KeyAlgo)[keyof typeof KeyAlgo];
527
539
  export * from '../autogen/types/consts/consts.cjs';
528
540
  export * from '../autogen/types/consts/tx-types.cjs';
@@ -524,5 +524,17 @@ export declare const FeeType: Readonly<{
524
524
  readonly GRANT_ONLY: 1;
525
525
  }>;
526
526
  export type FeeType = (typeof FeeType)[keyof typeof FeeType];
527
+ export declare const KeyAlgo: Readonly<{
528
+ readonly ED25519: "ED25519";
529
+ readonly FALCON: "FALCON";
530
+ readonly HAETAE: "HAETAE";
531
+ readonly AIMER: "AIMER";
532
+ readonly DILITHIUM: "DILITHIUM";
533
+ readonly FALCON_ED25519: "FALCON+ED25519";
534
+ readonly HAETAE_ED25519: "HAETAE+ED25519";
535
+ readonly AIMER_ED25519: "AIMER+ED25519";
536
+ readonly DILITHIUM_ED25519: "DILITHIUM+ED25519";
537
+ }>;
538
+ export type KeyAlgo = (typeof KeyAlgo)[keyof typeof KeyAlgo];
527
539
  export * from '../autogen/types/consts/consts.mjs';
528
540
  export * from '../autogen/types/consts/tx-types.mjs';
@@ -461,5 +461,19 @@ const FeeType = Object.freeze({
461
461
  AUTO: 0,
462
462
  GRANT_ONLY: 1
463
463
  });
464
+ // 키 알고리즘 식별자. createAccountAndKeystore / deriveKeysFromMnemonic 등의
465
+ // algoMaster / algoNormal / keyAlgo 파라미터에 쓰는 문자열 값.
466
+ // master 는 보통 하이브리드(*+ED25519), normal 은 ED25519 또는 단일/하이브리드.
467
+ const KeyAlgo = Object.freeze({
468
+ ED25519: 'ED25519',
469
+ FALCON: 'FALCON',
470
+ HAETAE: 'HAETAE',
471
+ AIMER: 'AIMER',
472
+ DILITHIUM: 'DILITHIUM',
473
+ FALCON_ED25519: 'FALCON+ED25519',
474
+ HAETAE_ED25519: 'HAETAE+ED25519',
475
+ AIMER_ED25519: 'AIMER+ED25519',
476
+ DILITHIUM_ED25519: 'DILITHIUM+ED25519'
477
+ });
464
478
 
465
- export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes };
479
+ export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, KeyAlgo, MaxVMRewardsCount, TxType, TxTypes };
package/dist/index.amd.js CHANGED
@@ -31,6 +31,7 @@ define(['exports', './clients/index.amd', './transports/index.amd', './accounts/
31
31
  exports.Currency = constant.Currency;
32
32
  exports.FeeType = constant.FeeType;
33
33
  exports.GRANT_COST_PER_TX = constant.GRANT_COST_PER_TX;
34
+ exports.KeyAlgo = constant.KeyAlgo;
34
35
  exports.MaxVMRewardsCount = constant.MaxVMRewardsCount;
35
36
  exports.TxType = constant.TxType;
36
37
  exports.TxTypes = constant.TxTypes;
@@ -48,6 +48,7 @@ exports.AddressClass = constant.AddressClass;
48
48
  exports.Currency = constant.Currency;
49
49
  exports.FeeType = constant.FeeType;
50
50
  exports.GRANT_COST_PER_TX = constant.GRANT_COST_PER_TX;
51
+ exports.KeyAlgo = constant.KeyAlgo;
51
52
  exports.MaxVMRewardsCount = constant.MaxVMRewardsCount;
52
53
  exports.TxType = constant.TxType;
53
54
  exports.TxTypes = constant.TxTypes;
package/dist/index.esm.js CHANGED
@@ -6,7 +6,7 @@ export { R as RpcRequestError, a as RpcResponseError } from './chunks/rpc-BlPk44
6
6
  export { A as AbortedError, H as HttpRequestError, T as TimeoutError } from './chunks/transport-ktAPuqsc.js';
7
7
  export { A as AccountRequiredError, D as DegenerateKeyError, I as InvalidTxResultError, S as SignFailedError, a as SignKeyBindUnsupportedError } from './chunks/account-FZT9LH_s.js';
8
8
  export { erc20Abi, getContract } from './contracts/index.esm.js';
9
- export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, MaxVMRewardsCount, TxType, TxTypes } from './constant/index.esm.js';
9
+ export { AddressClass, Currency, FeeType, GRANT_COST_PER_TX, KeyAlgo, MaxVMRewardsCount, TxType, TxTypes } from './constant/index.esm.js';
10
10
  export { c as createKeystoreBundle, s as splitKeystoreBundle, u as unlockKeystoreBundle, a as unlockMasterKeystore, b as unlockNormalKeystore } from './chunks/keystore-Dz4yB829.js';
11
11
  import './chunks/wasm-B1dWd6ix.js';
12
12
  import './chunks/tslib.es6-WQS2tr1v.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locuschain/lib",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "type": "module",
5
5
  "author": "bloomtechnology",
6
6
  "license": "MIT",