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

Fixing sign() method #605

Merged
merged 2 commits into from
Nov 12, 2019
Merged

Fixing sign() method #605

merged 2 commits into from
Nov 12, 2019

Conversation

GreenBusDriver
Copy link
Contributor

Change Description

Fixing some tiny and critical coding error

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

Copy link
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

@@ -41,7 +41,7 @@ export class Signature {
const r = new BN(this.signature.data.slice(1, lengthOfR + 1));
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
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

@@ -43,6 +43,7 @@
"babel-preset-stage-1": "6.24.1",
"cypress": "3.1.5",
"elliptic": "^6.5.0",
"eosjs-ecc": "^4.0.7",
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
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
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
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