@ecency/wallets 1.3.6 → 1.3.7

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.
@@ -0,0 +1,15 @@
1
+ export type HiveRole = "owner" | "active" | "posting" | "memo";
2
+ export declare function deriveHiveKey(mnemonic: string, role: HiveRole, accountIndex?: number): {
3
+ readonly privateKey: string;
4
+ readonly publicKey: string;
5
+ };
6
+ export declare function deriveHiveKeys(mnemonic: string, accountIndex?: number): {
7
+ readonly owner: string;
8
+ readonly active: string;
9
+ readonly posting: string;
10
+ readonly memo: string;
11
+ readonly ownerPubkey: string;
12
+ readonly activePubkey: string;
13
+ readonly postingPubkey: string;
14
+ readonly memoPubkey: string;
15
+ };
@@ -0,0 +1,15 @@
1
+ import { HiveRole } from './derive-hive-bip44-keys';
2
+ export declare function deriveHiveMasterPasswordKey(username: string, masterPassword: string, role: HiveRole): {
3
+ readonly privateKey: string;
4
+ readonly publicKey: string;
5
+ };
6
+ export declare function deriveHiveMasterPasswordKeys(username: string, masterPassword: string): {
7
+ readonly owner: string;
8
+ readonly active: string;
9
+ readonly posting: string;
10
+ readonly memo: string;
11
+ readonly ownerPubkey: string;
12
+ readonly activePubkey: string;
13
+ readonly postingPubkey: string;
14
+ readonly memoPubkey: string;
15
+ };
@@ -0,0 +1,3 @@
1
+ import { Client } from '@hiveio/dhive';
2
+ export type HiveKeyDerivation = "bip44" | "master-password" | "unknown";
3
+ export declare function detectHiveKeyDerivation(username: string, seed: string, client?: Client): Promise<HiveKeyDerivation>;
@@ -1,3 +1,6 @@
1
1
  export * from './delay';
2
2
  export * from './get-wallet';
3
3
  export * from './mnemonic-to-seed-bip-39';
4
+ export * from './derive-hive-bip44-keys';
5
+ export * from './derive-hive-master-password-keys';
6
+ export * from './detect-hive-key-derivation';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ecency/wallets",
3
3
  "private": false,
4
- "version": "1.3.6",
4
+ "version": "1.3.7",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/ecency-sdk.umd.js",