EOSIO / EOSIO/eosjs-ecc

Export ecdsa calcPubKeyRecoveryParam

Open
#51 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
289
Forks
117
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.