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

fix: Invalid signature integer: negative on JS platform #158

Merged
merged 4 commits into from
May 9, 2024

Conversation

elribonazo
Copy link
Contributor

Description:

Adding a fix for JS signatures which result in Invalid signature integer: negative.
Simply added a try catch and now we conditionally run the transcoding function as last resource.

All CommonMain and JSMain tests are working.

  • On top of this, have integrated the package manually in TS until I got that working :)
    we are good to go

Checklist:

  • My PR follows the contribution guidelines of this project
  • My PR is free of third-party dependencies that don't comply with the Allowlist
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked the PR title to follow the conventional commit specification

Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
elribonazo added 3 commits May 9, 2024 12:55
Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
@atala-dev
Copy link
Contributor

Code Coverage

File Coverage [91.67%]
apollo/src/jsMain/kotlin/io/iohk/atala/prism/apollo/secp256k1/Secp256k1Lib.kt 91.67%
Total Project Coverage 91.72%

@elribonazo elribonazo merged commit 0b454e0 into main May 9, 2024
5 checks passed
@elribonazo elribonazo deleted the feature/fix-js-signatures branch May 9, 2024 11:30
github-actions bot pushed a commit that referenced this pull request May 9, 2024
…platform (#158)

Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
atala-dev added a commit that referenced this pull request May 9, 2024
## [1.2.16](v1.2.15...v1.2.16) (2024-05-09)

### Bug Fixes

*  Invalid signature integer: negative on JS platform ([#158](#158)) ([0b454e0](0b454e0))
@atala-dev
Copy link
Contributor

🎉 This PR is included in version 1.2.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request May 9, 2024
## [1.2.16](v1.2.15...v1.2.16) (2024-05-09)

### Bug Fixes

*  Invalid signature integer: negative on JS platform ([#158](#158)) ([0b454e0](0b454e0))
hamada147 added a commit that referenced this pull request May 20, 2024
Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
Co-authored-by: Ahmed Moussa <[email protected]>
hamada147 pushed a commit that referenced this pull request May 20, 2024
## [1.2.16](v1.2.15...v1.2.16) (2024-05-09)

### Bug Fixes

*  Invalid signature integer: negative on JS platform ([#158](#158)) ([0b454e0](0b454e0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants