EOSJS v21.0.0-RC1 Release Notes
Pre-releaseEOSJS v21.0.0-rc1 Release Notes
This is a RELEASE CANDIDATE for version 21.0.0. The latest STABLE release is v20.0.0.
This Release Candidate can be accessed by running yarn add eosjs@RC
.
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.
Context-free Actions Support
Context-free actions are now supported in eosjs
.
WebAuthn Support
Read more about WebAuthn support in the EOSIO 2.0 Medium article. For technical details, see the PR.
We have updated the Tropical Example app to demonstrate a use of Webauthn.
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
Other Changes
- (#534) Add
get_scheduled_transactions
to jsonrpc - (#535) Handle context-free data
- (#536) Support context-free actions
- (#552) Update README.md
- (#556) Fix tapos check
- (#545) Add support for send_transaction JSON RPC
- (#562) trimmed off final slash from endpoint with regex
- (#566) adds webhook for metrics collection
- (#577) web-authn support
- (#579) Replace eosjs-ecc with elliptic
- (#569) Minor bugfix for invalid example json in documentation
- (#568) Update README.md
- (#582) replace get_block with get_block_header_state
- (#586) Bump mixin-deep from 1.3.1 to 1.3.2
- (#587) Get block header fallback
- (#597) Add conversion helpers for to/from elliptic lib
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.