@xyo-network/bip39 3.0.6 → 3.0.8
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/dist/neutral/index.d.ts +6 -28
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/wordlists/czech.d.ts +2 -0
- package/dist/neutral/wordlists/czech.d.ts.map +1 -0
- package/dist/neutral/wordlists/english.d.ts +2 -0
- package/dist/neutral/wordlists/english.d.ts.map +1 -0
- package/dist/neutral/wordlists/french.d.ts +2 -0
- package/dist/neutral/wordlists/french.d.ts.map +1 -0
- package/dist/neutral/wordlists/index.d.ts +21 -0
- package/dist/neutral/wordlists/index.d.ts.map +1 -0
- package/dist/neutral/wordlists/italian.d.ts +2 -0
- package/dist/neutral/wordlists/italian.d.ts.map +1 -0
- package/dist/neutral/wordlists/japanese.d.ts +2 -0
- package/dist/neutral/wordlists/japanese.d.ts.map +1 -0
- package/dist/neutral/wordlists/korean.d.ts +2 -0
- package/dist/neutral/wordlists/korean.d.ts.map +1 -0
- package/dist/neutral/wordlists/simplified-chinese.d.ts +2 -0
- package/dist/neutral/wordlists/simplified-chinese.d.ts.map +1 -0
- package/dist/neutral/wordlists/spanish.d.ts +2 -0
- package/dist/neutral/wordlists/spanish.d.ts.map +1 -0
- package/dist/neutral/wordlists/traditional-chinese.d.ts +2 -0
- package/dist/neutral/wordlists/traditional-chinese.d.ts.map +1 -0
- package/package.json +26 -26
- package/xy.config.ts +1 -3
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import simplifiedChinese from '@scure/bip39/wordlists/simplified-chinese';
|
|
8
|
-
import spanish from '@scure/bip39/wordlists/spanish';
|
|
9
|
-
import traditionalChinese from '@scure/bip39/wordlists/traditional-chinese';
|
|
10
|
-
|
|
11
|
-
declare const wordlists: {
|
|
12
|
-
czech: typeof czech;
|
|
13
|
-
english: typeof english;
|
|
14
|
-
french: typeof french;
|
|
15
|
-
italian: typeof italian;
|
|
16
|
-
japanese: typeof japanese;
|
|
17
|
-
korean: typeof korean;
|
|
18
|
-
simplifiedChinese: typeof simplifiedChinese;
|
|
19
|
-
spanish: typeof spanish;
|
|
20
|
-
traditionalChinese: typeof traditionalChinese;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
declare function mnemonicToEntropy(mnemonic: string, wordlist: string[]): Uint8Array;
|
|
24
|
-
declare function entropyToMnemonic(entropy: Uint8Array, wordlist: string[]): string;
|
|
25
|
-
declare function mnemonicToSeed(mnemonic: string, passphrase?: string): Promise<Uint8Array>;
|
|
26
|
-
declare function mnemonicToSeedSync(mnemonic: string, passphrase?: string): Uint8Array;
|
|
27
|
-
|
|
28
|
-
export { entropyToMnemonic, mnemonicToEntropy, mnemonicToSeed, mnemonicToSeedSync, wordlists };
|
|
1
|
+
export * from './wordlists/index.ts';
|
|
2
|
+
export declare function mnemonicToEntropy(mnemonic: string, wordlist: string[]): Uint8Array;
|
|
3
|
+
export declare function entropyToMnemonic(entropy: Uint8Array, wordlist: string[]): string;
|
|
4
|
+
export declare function mnemonicToSeed(mnemonic: string, passphrase?: string): Promise<Uint8Array>;
|
|
5
|
+
export declare function mnemonicToSeedSync(mnemonic: string, passphrase?: string): Uint8Array;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,sBAAsB,CAAA;AAwDpC,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,UAAU,CAKlF;AAiBD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAIjF;AAgBD,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,SAAK,uBAE/D;AAcD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,SAAK,cAEnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"czech.d.ts","sourceRoot":"","sources":["../../../src/wordlists/czech.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,EAAE,MAAM,EA+/DZ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"english.d.ts","sourceRoot":"","sources":["../../../src/wordlists/english.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,EAAE,MAAM,EA+/Db,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"french.d.ts","sourceRoot":"","sources":["../../../src/wordlists/french.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,EAAE,MAAM,EA+/DR,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import czech from '@scure/bip39/wordlists/czech';
|
|
2
|
+
import english from '@scure/bip39/wordlists/english';
|
|
3
|
+
import french from '@scure/bip39/wordlists/french';
|
|
4
|
+
import italian from '@scure/bip39/wordlists/italian';
|
|
5
|
+
import japanese from '@scure/bip39/wordlists/japanese';
|
|
6
|
+
import korean from '@scure/bip39/wordlists/korean';
|
|
7
|
+
import simplifiedChinese from '@scure/bip39/wordlists/simplified-chinese';
|
|
8
|
+
import spanish from '@scure/bip39/wordlists/spanish';
|
|
9
|
+
import traditionalChinese from '@scure/bip39/wordlists/traditional-chinese';
|
|
10
|
+
export declare const wordlists: {
|
|
11
|
+
czech: typeof czech;
|
|
12
|
+
english: typeof english;
|
|
13
|
+
french: typeof french;
|
|
14
|
+
italian: typeof italian;
|
|
15
|
+
japanese: typeof japanese;
|
|
16
|
+
korean: typeof korean;
|
|
17
|
+
simplifiedChinese: typeof simplifiedChinese;
|
|
18
|
+
spanish: typeof spanish;
|
|
19
|
+
traditionalChinese: typeof traditionalChinese;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wordlists/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,8BAA8B,CAAA;AAChD,OAAO,OAAO,MAAM,gCAAgC,CAAA;AACpD,OAAO,MAAM,MAAM,+BAA+B,CAAA;AAClD,OAAO,OAAO,MAAM,gCAAgC,CAAA;AACpD,OAAO,QAAQ,MAAM,iCAAiC,CAAA;AACtD,OAAO,MAAM,MAAM,+BAA+B,CAAA;AAClD,OAAO,iBAAiB,MAAM,2CAA2C,CAAA;AACzE,OAAO,OAAO,MAAM,gCAAgC,CAAA;AACpD,OAAO,kBAAkB,MAAM,4CAA4C,CAAA;AAG3E,eAAO,MAAM,SAAS;;;;;;;;;;CAUrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"italian.d.ts","sourceRoot":"","sources":["../../../src/wordlists/italian.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,EAAE,MAAM,EA+/DX,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"japanese.d.ts","sourceRoot":"","sources":["../../../src/wordlists/japanese.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,EAAE,MAAM,EA+/Db,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"korean.d.ts","sourceRoot":"","sources":["../../../src/wordlists/korean.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,EAAE,MAAM,EA+/DV,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simplified-chinese.d.ts","sourceRoot":"","sources":["../../../src/wordlists/simplified-chinese.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,EAAE,MAAM,EA+/Df,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spanish.d.ts","sourceRoot":"","sources":["../../../src/wordlists/spanish.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,EAAE,MAAM,EA+/DX,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traditional-chinese.d.ts","sourceRoot":"","sources":["../../../src/wordlists/traditional-chinese.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,EAAE,MAAM,EA+/Df,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/bip39",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"url": "https://xyo.network"
|
|
7
|
-
},
|
|
3
|
+
"version": "3.0.8",
|
|
4
|
+
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
|
+
"homepage": "https://xyo.network",
|
|
8
6
|
"bugs": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
7
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues",
|
|
8
|
+
"email": "support@xyo.network"
|
|
11
9
|
},
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"@scure/bip39": "^1.3.0"
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
16
13
|
},
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
14
|
+
"license": "LGPL-3.0-only",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "XYO Development Team",
|
|
17
|
+
"email": "support@xyo.network",
|
|
18
|
+
"url": "https://xyo.network"
|
|
22
19
|
},
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
23
22
|
"exports": {
|
|
24
23
|
".": {
|
|
25
24
|
"types": "./dist/neutral/index.d.ts",
|
|
@@ -29,16 +28,17 @@
|
|
|
29
28
|
},
|
|
30
29
|
"module": "dist/neutral/index.mjs",
|
|
31
30
|
"types": "dist/neutral/index.d.ts",
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@noble/hashes": "^1.4.0",
|
|
33
|
+
"@scure/base": "^1.1.7",
|
|
34
|
+
"@scure/bip39": "^1.3.0"
|
|
36
35
|
},
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
38
|
+
"@xylabs/tsconfig": "^4.0.7",
|
|
39
|
+
"typescript": "^5.5.4"
|
|
40
40
|
},
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
}
|
|
44
44
|
}
|