Skip to content

fix: update bitcore-lib to v10.8.10 to resolve verifyMessageOfECDSA error#29

Open
originalix wants to merge 1 commit intounisat-wallet:masterfrom
originalix:master
Open

fix: update bitcore-lib to v10.8.10 to resolve verifyMessageOfECDSA error#29
originalix wants to merge 1 commit intounisat-wallet:masterfrom
originalix:master

Conversation

@originalix
Copy link

This PR addresses the issue described in #26, where users encounter the following error:

TypeError: bitcore_lib_1.default.crypto.ECDSA is not a constructor

Root Cause

The issue occurs because bitcore-lib was not version-locked, resulting in users inadvertently installing newer versions of bitcore-lib which introduced breaking changes. Specifically, in recent versions, ECDSA is no longer a constructor function.

Solution

The PR includes the following fixes:

Locked bitcore-lib to its latest stable version to prevent breaking changes in the future.

Adapted the codebase to accommodate the updated API.

Verified all unit tests pass successfully with the new changes.

Test

All unit tests are confirmed to be passing after these modifications.

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