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

Bump eosjs from 20.0.3 to 21.0.3 #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps eosjs from 20.0.3 to 21.0.3.

Release notes

Sourced from eosjs's releases.

EOSJS v21.0.3 Release Notes

This release contains security, stability, and miscellaneous fixes.

Sign/Recover/Verify Encoding Argument and Hashing

There was an issue using the new sign/recover/verify methods within eosjs due to the encoding argument during the hashing functionality. Utilizing these functions with the shouldHash argument set to false and sending hashed data was not affected.

Other Changes

  • (#783) [docs] 21.0.x update docs.json for remove_extension filter
  • (#786) Resolving issue with encoding argument (release/21.0.x)
  • (#787) Bumping version to 21.0.3

Disclaimer: All repositories and other materials are provided subject to this IMPORTANT notice and you must familiarize yourself with its terms. The notice contains important information, limitations and restrictions relating to our software, publications, trademarks, third-party resources, and forward-looking statements. By accessing any of our repositories and other materials, you accept and agree to the terms of the notice.

EOSJS v21.0.2 Release Notes

Note: Since this release promotes EOSJS v21.0.2-rc3 to v21.0.2 (stable), using the @latest tag will now automatically cause an upgrade from v20.0.x to v21.0.2.

Switch to elliptic cryptography library

eosjs-ecc has been replaced with the elliptic cryptographic library. The eosjs public API has been maintained; this is only a change to the internals.

Conversion Helpers To/From elliptic lib's Format

elliptic stores keys and signatures differently than eosjs-ecc. For ease of use, conversion functions have been added. These are primarily located in src/eosjs-key-conversions.ts as well as re-exported in src/eosjs-jssig.ts. Usage examples of each can be found in src/tests/eosjs-jssig.test.ts. A glimpse of the functions follows:

// Private Key from EOSIO PUB_K1_ string format to `elliptic` and back
const privEllipticKey = PrivateKey.fromString(eosioK1PrivateKeyAsString).toElliptic();
const finalEosioKeyAsK1String = PrivateKey.fromElliptic(privEllipticKey).toString();
// Public Key from EOSIO PUB_K1_ string format to Elliptic and back
const ellipticPubKey = PublicKey.fromString(eosioK1PubKeyAsString).toElliptic();
const finalEosioKeyAsK1String = PublicKey.fromElliptic(ellipticPubKey).toString();
// Signature from EOS string format to elliptic and back
const ellipticSig = Signature.fromString(eosioSignatureAsString).toElliptic();
const finalEosioSignatureAsString = Signature.fromElliptic(ellipticSig).toString();
// Perform digest of data
digestFromSerializedData()  // wraps the construction of a digest from the data being digested

Additional Helpers with elliptic

elliptic has methods to sign, verify, and recover keys and signatures. For ease of use, helper functions that perform the conversion and operation of those methods have been added. These are added to PublicKey, PrivateKey, and Signature classes located in src/eosjs-key-conversions.ts as well as re-exported in src/eosjs-jssig.ts. Usage examples of each can be found in src/tests/eosjs-jssig.test.ts. Additionally, sha256 and generateKeyPair are available in src/eosjs-key-conversions.ts. A glimpse of the functions follows:

// Create a message digest with sha256
const digest = sha256(message);
// Generate a Key Pair with specified curve key type.  Intended for non-browser environments or development
</tr></table> ... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [eosjs](https://github.com/EOSIO/eosjs) from 20.0.3 to 21.0.3.
- [Release notes](https://github.com/EOSIO/eosjs/releases)
- [Commits](https://github.com/EOSIO/eosjs/commits/v21.0.3)

Signed-off-by: dependabot-preview[bot] <[email protected]>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants