Skip to content

SDK hotfixes (IMPORTANT)#20

Open
BlobMaster41 wants to merge 17 commits intounisat-wallet:masterfrom
btc-vision:sdk-fixes
Open

SDK hotfixes (IMPORTANT)#20
BlobMaster41 wants to merge 17 commits intounisat-wallet:masterfrom
btc-vision:sdk-fixes

Conversation

@BlobMaster41
Copy link

@BlobMaster41 BlobMaster41 commented Aug 13, 2024

Fixed a bunch of typing problems with keyring:

  1. Unit tests now all pass.
  2. Fixed broken types and added typing to library (regarding keyring)
  3. Upgraded vulnerables dependencies.
  4. Fixed big problem with fromWif being invalid
  5. Changed ecc library to @bitcoinerlab/secp256k1 even if slower. The current used one tiny-secp256k1 is not compatible with some browser and cause problem when compiling in most cases.
  6. Fixed this bug:
    image
  7. Fixed IDE eslint:
    image
  8. Added missing library bip-schnorr (from bitcore-lib)
  9. Fixed duplicated usage of (bitcore-lib)
  10. Removed a lot of useless ASYNC/AWAIT
  11. Keyring now support different networks, before it was hardcoded to networks.bitcoin.

This contain breaking changes related to single keyring. Wallet must be upgraded as well. This version use a somewhat managable class abstraction to add more potential keyring. A PR will be made on the wallet including these changes.

Please note that the version that Unisat is using for encrypt/decrypt is deprecated and unmaitenained with potential security vulnerabilities. I recommend upgrading to https://github.com/MetaMask/browser-passworder which will be included in my PR.

Fixed a bunch of typing problems with keyring.

Unit tests now all pass.

Fixed broken types and added typing to libraries.

Upgraded vulnerable dependencies.
tiny-secp256k1 might be faster but it is NOT compatible with BROWSERS.

This package is breaking inside the browser, aka on the Unisat extension because of this.
This reverts commit 3552541.
This reverts commit fc7b6dc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant