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

Export ecdsa calcPubKeyRecoveryParam #51

Open
WarrickFitz opened this issue Apr 14, 2019 · 0 comments
Open

Export ecdsa calcPubKeyRecoveryParam #51

WarrickFitz opened this issue Apr 14, 2019 · 0 comments

Comments

@WarrickFitz
Copy link

I'm trying to create a new Signature. I already have the r and s value for the signature. Getting i what I'm having a hard time with.

var signature = new ecc.Signature(rBigInteger, sBigInteger, i).toString();

Currently I'm using the calcPubKeyRecoveryParam method in this external sourced ecdsa library to get the i value, however that library is depreciated and also has problem when run through webpack + uglify.
https://github.com/cryptocoinjs/ecdsa

I see eosjs-ecc has it's own copy of this ecdsa lib but I can't see an easy way to call it. Could you please export this method or explain how I can call that method without directly pathing into the node_modules folder.

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

No branches or pull requests

1 participant