Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK hotfixes (IMPORTANT) #20

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

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