zeldwallet 0.1.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 +305 -0
- package/dist/index.d.ts +6 -0
- package/dist/src/ZeldWallet.d.ts +254 -0
- package/dist/src/ZeldWallet.d.ts.map +1 -0
- package/dist/src/component/ZeldWalletUI.d.ts +56 -0
- package/dist/src/component/ZeldWalletUI.d.ts.map +1 -0
- package/dist/src/component/balance.d.ts +41 -0
- package/dist/src/component/balance.d.ts.map +1 -0
- package/dist/src/component/bindings.d.ts +76 -0
- package/dist/src/component/bindings.d.ts.map +1 -0
- package/dist/src/component/constants.d.ts +15 -0
- package/dist/src/component/constants.d.ts.map +1 -0
- package/dist/src/component/controller.d.ts +224 -0
- package/dist/src/component/controller.d.ts.map +1 -0
- package/dist/src/component/errors.d.ts +5 -0
- package/dist/src/component/errors.d.ts.map +1 -0
- package/dist/src/component/i18n.d.ts +156 -0
- package/dist/src/component/i18n.d.ts.map +1 -0
- package/dist/src/component/messages/ar.d.ts +3 -0
- package/dist/src/component/messages/ar.d.ts.map +1 -0
- package/dist/src/component/messages/bn.d.ts +3 -0
- package/dist/src/component/messages/bn.d.ts.map +1 -0
- package/dist/src/component/messages/cs.d.ts +3 -0
- package/dist/src/component/messages/cs.d.ts.map +1 -0
- package/dist/src/component/messages/de.d.ts +3 -0
- package/dist/src/component/messages/de.d.ts.map +1 -0
- package/dist/src/component/messages/el.d.ts +3 -0
- package/dist/src/component/messages/el.d.ts.map +1 -0
- package/dist/src/component/messages/en.d.ts +3 -0
- package/dist/src/component/messages/en.d.ts.map +1 -0
- package/dist/src/component/messages/es.d.ts +3 -0
- package/dist/src/component/messages/es.d.ts.map +1 -0
- package/dist/src/component/messages/fa.d.ts +3 -0
- package/dist/src/component/messages/fa.d.ts.map +1 -0
- package/dist/src/component/messages/fr.d.ts +3 -0
- package/dist/src/component/messages/fr.d.ts.map +1 -0
- package/dist/src/component/messages/he.d.ts +3 -0
- package/dist/src/component/messages/he.d.ts.map +1 -0
- package/dist/src/component/messages/hi.d.ts +3 -0
- package/dist/src/component/messages/hi.d.ts.map +1 -0
- package/dist/src/component/messages/id.d.ts +3 -0
- package/dist/src/component/messages/id.d.ts.map +1 -0
- package/dist/src/component/messages/index.d.ts +31 -0
- package/dist/src/component/messages/index.d.ts.map +1 -0
- package/dist/src/component/messages/it.d.ts +3 -0
- package/dist/src/component/messages/it.d.ts.map +1 -0
- package/dist/src/component/messages/ja.d.ts +3 -0
- package/dist/src/component/messages/ja.d.ts.map +1 -0
- package/dist/src/component/messages/ko.d.ts +3 -0
- package/dist/src/component/messages/ko.d.ts.map +1 -0
- package/dist/src/component/messages/ms.d.ts +3 -0
- package/dist/src/component/messages/ms.d.ts.map +1 -0
- package/dist/src/component/messages/nl.d.ts +3 -0
- package/dist/src/component/messages/nl.d.ts.map +1 -0
- package/dist/src/component/messages/pl.d.ts +3 -0
- package/dist/src/component/messages/pl.d.ts.map +1 -0
- package/dist/src/component/messages/pt.d.ts +3 -0
- package/dist/src/component/messages/pt.d.ts.map +1 -0
- package/dist/src/component/messages/ro.d.ts +3 -0
- package/dist/src/component/messages/ro.d.ts.map +1 -0
- package/dist/src/component/messages/ru.d.ts +3 -0
- package/dist/src/component/messages/ru.d.ts.map +1 -0
- package/dist/src/component/messages/sw.d.ts +3 -0
- package/dist/src/component/messages/sw.d.ts.map +1 -0
- package/dist/src/component/messages/th.d.ts +3 -0
- package/dist/src/component/messages/th.d.ts.map +1 -0
- package/dist/src/component/messages/tl.d.ts +3 -0
- package/dist/src/component/messages/tl.d.ts.map +1 -0
- package/dist/src/component/messages/tr.d.ts +3 -0
- package/dist/src/component/messages/tr.d.ts.map +1 -0
- package/dist/src/component/messages/uk.d.ts +3 -0
- package/dist/src/component/messages/uk.d.ts.map +1 -0
- package/dist/src/component/messages/ur.d.ts +3 -0
- package/dist/src/component/messages/ur.d.ts.map +1 -0
- package/dist/src/component/messages/vi.d.ts +3 -0
- package/dist/src/component/messages/vi.d.ts.map +1 -0
- package/dist/src/component/messages/zh-CN.d.ts +3 -0
- package/dist/src/component/messages/zh-CN.d.ts.map +1 -0
- package/dist/src/component/messages/zh-TW.d.ts +3 -0
- package/dist/src/component/messages/zh-TW.d.ts.map +1 -0
- package/dist/src/component/miner.d.ts +108 -0
- package/dist/src/component/miner.d.ts.map +1 -0
- package/dist/src/component/render.d.ts +11 -0
- package/dist/src/component/render.d.ts.map +1 -0
- package/dist/src/component/state.d.ts +142 -0
- package/dist/src/component/state.d.ts.map +1 -0
- package/dist/src/component/styles.d.ts +2 -0
- package/dist/src/component/styles.d.ts.map +1 -0
- package/dist/src/component/viewModel.d.ts +281 -0
- package/dist/src/component/viewModel.d.ts.map +1 -0
- package/dist/src/component/wallets.d.ts +40 -0
- package/dist/src/component/wallets.d.ts.map +1 -0
- package/dist/src/index.d.ts +18 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/keys/KeyManager.d.ts +132 -0
- package/dist/src/keys/KeyManager.d.ts.map +1 -0
- package/dist/src/keys/derivation.d.ts +58 -0
- package/dist/src/keys/derivation.d.ts.map +1 -0
- package/dist/src/keys/signing.d.ts +44 -0
- package/dist/src/keys/signing.d.ts.map +1 -0
- package/dist/src/provider/WBIPProvider.d.ts +74 -0
- package/dist/src/provider/WBIPProvider.d.ts.map +1 -0
- package/dist/src/react/ZeldWalletCard.d.ts +29 -0
- package/dist/src/react/ZeldWalletCard.d.ts.map +1 -0
- package/dist/src/react/index.d.ts +3 -0
- package/dist/src/react/index.d.ts.map +1 -0
- package/dist/src/react/useZeldWalletController.d.ts +28 -0
- package/dist/src/react/useZeldWalletController.d.ts.map +1 -0
- package/dist/src/storage/SecureStorage.d.ts +183 -0
- package/dist/src/storage/SecureStorage.d.ts.map +1 -0
- package/dist/src/storage/constants.d.ts +59 -0
- package/dist/src/storage/constants.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +245 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/ui/Modal.d.ts +19 -0
- package/dist/src/ui/Modal.d.ts.map +1 -0
- package/dist/src/unifiedWallet.d.ts +29 -0
- package/dist/src/unifiedWallet.d.ts.map +1 -0
- package/dist/src/utils/crypto.d.ts +36 -0
- package/dist/src/utils/crypto.d.ts.map +1 -0
- package/dist/src/utils/encoding.d.ts +46 -0
- package/dist/src/utils/encoding.d.ts.map +1 -0
- package/dist/src/utils/validation.d.ts +42 -0
- package/dist/src/utils/validation.d.ts.map +1 -0
- package/dist/wasm/package.json +31 -0
- package/dist/wasm/zeldhash_miner_wasm.d.ts +82 -0
- package/dist/wasm/zeldhash_miner_wasm.js +1404 -0
- package/dist/wasm/zeldhash_miner_wasm_bg.wasm +0 -0
- package/dist/wasm/zeldhash_miner_wasm_bg.wasm.d.ts +27 -0
- package/dist/worker.js +338 -0
- package/dist/zeldwallet.es.js +36558 -0
- package/dist/zeldwallet.es.js.map +1 -0
- package/package.json +99 -0
package/package.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zeldwallet",
|
|
3
|
+
"overrides": {
|
|
4
|
+
"valibot": "^1.2.0"
|
|
5
|
+
},
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"description": "Lightweight JavaScript library for creating a Bitcoin wallet directly in the browser",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/zeldwallet.es.js",
|
|
10
|
+
"module": "./dist/zeldwallet.es.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/zeldwallet.es.js",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^18.2.0",
|
|
23
|
+
"react-dom": "^18.2.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependenciesMeta": {
|
|
26
|
+
"react": {
|
|
27
|
+
"optional": true
|
|
28
|
+
},
|
|
29
|
+
"react-dom": {
|
|
30
|
+
"optional": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"copy-wasm": "mkdir -p public/wasm && cp node_modules/zeldhash-miner/wasm/* public/wasm/ && cp node_modules/zeldhash-miner/dist/worker.js public/ && node -e \"const fs=require('fs');const p='public/worker.js';if(fs.existsSync(p)){const c=fs.readFileSync(p,'utf8').replace(/\\n?\\/\\/\\# sourceMappingURL=worker\\.js\\.map\\s*$/,'');fs.writeFileSync(p,c);}\"",
|
|
35
|
+
"dev": "npm run copy-wasm && vite",
|
|
36
|
+
"build": "npm run copy-wasm && npm run lint && tsc && vite build",
|
|
37
|
+
"preview": "vite preview",
|
|
38
|
+
"test": "vitest",
|
|
39
|
+
"test:run": "vitest run",
|
|
40
|
+
"test:coverage": "vitest run --coverage",
|
|
41
|
+
"lint": "eslint src --ext .ts --max-warnings 0",
|
|
42
|
+
"typecheck": "tsc --noEmit",
|
|
43
|
+
"postinstall": "npm run copy-wasm"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"bitcoin",
|
|
47
|
+
"wallet",
|
|
48
|
+
"browser",
|
|
49
|
+
"wbip",
|
|
50
|
+
"bip32",
|
|
51
|
+
"bip39",
|
|
52
|
+
"taproot",
|
|
53
|
+
"segwit"
|
|
54
|
+
],
|
|
55
|
+
"author": "Ouziel Slama <ouziel.slama@gmail.com>",
|
|
56
|
+
"license": "(MIT OR Apache-2.0)",
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "git+https://github.com/ouziel-slama/zeldwallet.git"
|
|
60
|
+
},
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/ouziel-slama/zeldwallet/issues"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://github.com/ouziel-slama/zeldwallet#readme",
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@noble/hashes": "^1.3.3",
|
|
67
|
+
"@noble/secp256k1": "^2.1.0",
|
|
68
|
+
"@scure/bip32": "^1.4.0",
|
|
69
|
+
"@scure/bip39": "^1.3.0",
|
|
70
|
+
"bitcoinjs-lib": "^6.1.6",
|
|
71
|
+
"buffer": "^6.0.3",
|
|
72
|
+
"idb": "^8.0.0",
|
|
73
|
+
"sats-connect": "^4.2.1",
|
|
74
|
+
"tiny-secp256k1": "^2.2.4",
|
|
75
|
+
"zeldhash-miner": "^0.2.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@eslint/js": "^9.39.2",
|
|
79
|
+
"@types/node": "^20.10.0",
|
|
80
|
+
"@types/react": "^18.2.43",
|
|
81
|
+
"@types/react-dom": "^18.2.17",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^8.50.1",
|
|
83
|
+
"@typescript-eslint/parser": "^8.50.1",
|
|
84
|
+
"@vitejs/plugin-react": "^4.1.0",
|
|
85
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
86
|
+
"eslint": "^9.39.2",
|
|
87
|
+
"fake-indexeddb": "^6.2.5",
|
|
88
|
+
"jsdom": "^27.3.0",
|
|
89
|
+
"react": "^18.2.0",
|
|
90
|
+
"react-dom": "^18.2.0",
|
|
91
|
+
"typescript": "^5.3.0",
|
|
92
|
+
"typescript-eslint": "^8.50.1",
|
|
93
|
+
"vite": "^7.3.0",
|
|
94
|
+
"vite-plugin-dts": "^4.5.4",
|
|
95
|
+
"vite-plugin-top-level-await": "^1.6.0",
|
|
96
|
+
"vite-plugin-wasm": "^3.5.0",
|
|
97
|
+
"vitest": "^4.0.16"
|
|
98
|
+
}
|
|
99
|
+
}
|