diff options
| author | Pawel Zelawski <pawel.zelawski@outlook.com> | 2026-01-23 10:51:35 +0100 |
|---|---|---|
| committer | Pawel Zelawski <pawel.zelawski@outlook.com> | 2026-01-23 10:51:35 +0100 |
| commit | 8c32933900e3ed4aa294b6c06403bd406129d349 (patch) | |
| tree | bf64f4dac8d1de9787efb9bdf1567c992103db83 /vite.config.ts | |
| parent | 0b3e86989397d526d74c084828f9eb18e7749976 (diff) | |
feat: migrate from bitcoinjs-message to @noble/curves
BREAKING CHANGE: Replace bitcoinjs-message with @noble/curves for signature verification
- Remove elliptic vulnerability (all versions <= 6.6.1 affected)
- Implement Bitcoin message signing using @noble/curves and @noble/hashes
- Support for Legacy (D/S) and Bech32 (dgb1) addresses
- Update all dev dependencies to latest stable versions
- Remove unnecessary overrides for elliptic and lodash
This is a major version update due to dependency changes, though the public API remains unchanged.
Diffstat (limited to 'vite.config.ts')
| -rw-r--r-- | vite.config.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vite.config.ts b/vite.config.ts index 6ec42ad..e7fe7a7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -25,14 +25,12 @@ export default defineConfig({ rollupOptions: { // Make sure to externalize deps that shouldn't be bundled // into your library (e.g., peer dependencies) - external: ['crypto', 'module', 'bitcoinjs-message'], // Externalize Node built-ins and the core dependency + external: ['crypto'], // Externalize Node built-ins output: { // Provide global variables to use in the UMD build // for externalized deps globals: { crypto: 'crypto', // Map 'crypto' import to global 'crypto' (Node) - module: 'module', // Map 'module' import to global 'module' (Node) - 'bitcoinjs-message': 'bitcoinjsMessage' // Map 'bitcoinjs-message' to global 'bitcoinjsMessage' }, }, }, |
