Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Fixing sign() method#605

Merged
GreenBusDriver merged 2 commits intodevelopfrom
fixingSignMethod
Nov 12, 2019
Merged

Fixing sign() method#605
GreenBusDriver merged 2 commits intodevelopfrom
fixingSignMethod

Conversation

@GreenBusDriver
Copy link
Copy Markdown
Contributor

Change Description

Fixing some tiny and critical coding error

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

Copy link
Copy Markdown
Contributor

@c0d3ster c0d3ster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuff, glad you figured out the mysticism here

const s = new BN(this.signature.data.slice(lengthOfR + 1, lengthOfR + lengthOfS + 1));

const recoveryParam = this.signature.data[0] - 27 - 4;
const recoveryParam = (this.signature.data[0] - 27) & 3;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes of course & 3 not - 4

"babel-preset-stage-1": "6.24.1",
"cypress": "3.1.5",
"elliptic": "^6.5.0",
"eosjs-ecc": "^4.0.7",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in the dev dependencies for testing compatibility with previous methodologies

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eosjs-ecc is going away; we shouldn't depend on it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not in the produced library; it's only here in devDependencies to verify that what we're producing now matches what it used to produce.

@GreenBusDriver GreenBusDriver merged commit cd2fb09 into develop Nov 12, 2019
@GreenBusDriver GreenBusDriver deleted the fixingSignMethod branch December 5, 2019 20:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants