News.EOS.WiKi Bilingual News & Info Of EOS

EOSJS 21.0.0-rc1版:支持WebAuthn、椭圆加密及更多内容/EOSJS Version 21.0.0-rc1: Support for WebAuthn, Elliptic Cryptography, and More

E

译文/Translated:

EOSJS仍是将应用程序前端连接至EOSIO区块链最热门的开源库之一。为支持EOSJS的广泛应用,我们现在宣布推出最新候选版本EOSJS 21.0.0-rc1,该版本现可供社区测试。此次构建进行了诸多变动并添加了额外的性能,包括支持WebAuthn、无文本操作以及切换至椭圆加密库。

作为发布的候选版本,我们鼓励EOSIO开发人员社区对EOSJS 21.0.0-rc1进行测试,以帮助我们在开发稳定版本的过程中对其进行完善。

采用WebAuthn为EOSIO应用提供保障

EOSJS 21.0.0-rc1版本支持在EOSIO区块链上运行WebAuthn。EOSIO是首家支持WebAuthn的区块链平台。这让用户能够通过使用2FA硬件钥匙保护高风险交易,诸如YubiKey或Macbook的触控ID一类。

希望将WebAuthn集成进自身EOSIO应用的开发人员可选择我们的WebAuthn示例应用(WebAuthn Example Application),此候选版本会为其提供支持,直至EOSJS 21.0.0稳定版本推出。

切换至椭圆加密库

EOSJS 21.0.0-rc1引入了一项转换功能,从eosjs-ecc切换至更强大的椭圆加密库。密钥及签名都分别单独存放在椭圆加密库中。为适应这一改变,我们添加了转换功能,为EOSIO开发人员使用库提供了更多的便利性。

最终,eosjs-ecc将被分解。转换功能重构现有代码,因此该项转换并不会对API造成影响。

无文本操作支持

无文本操作将仅依靠交易数据的运算细化。例如,无文本操作能够仅从交易数据及签名导出负责签署交易的公钥,而无需依赖区块链的state。与签名验证类似,EOSJS的无文本操作将最终实现平行处理,并促进使用EOSJS应用的广义签名验证。

其他功能

除上述内容外,EOSJS 21.0.0-rc1还添加了以下变更内容:

对用户产生的影响

  • WebAuthn一经采用将能够使用YubiKey一类的硬件钥匙,如同EOSIO应用上进行区块链交易的2FA设备。

对开发人员产生的影响

  • 参考EOSJS 21.0.0-rc1,以支持WebAuthn示例应用程序,并将区块链交易基于硬件密钥的2FA集成至EOSIO应用程序中。
  • 无文本操作支持通过平行处理实现更高的效率。
  • 转换功能使eosjs-ecc与椭圆库的转换更加方便。
  • 随着稳定版本的进一步开发,测试EOSJS 21.0.0-rc1的新性能并提供相应反馈。

正如EOSJS早前更新的内容一般,当EOSJS 21.0.0-rc1趋于稳定时,我们将继续提供有关库全新功能的附加文档和解释文本。

保持连接

我们致力于提供最好的开源工具,以实现应用与EOSIO区块链的连接,开发人员们可以通过测试并提供候选版本的反馈为我们提供帮助。若您想要提供反馈,并与我们团队更加密切地合作,为开发人员优化EOSIO,您可以向我们的开发者团队发送邮件:developers@block.one

敬请悉知:此间所有材料都受此重要通知约束,您必须自行熟悉其间章程。本通知包含了与我司软件、出版物、商标、第三方资源及前瞻性声明相关的重要信息、限制及约束内容。通过访问我司材料,您接受并同意本通知的条款。

原文/Original:

EOSJS remains among the most popular open source libraries to connect the front end of applications to EOSIO blockchains. Supporting the widespread adoption of EOSJS, we are excited to announce the latest release candidate, EOSJS 21.0.0-rc1, is now available for community testing. A number of changes and additional features have been introduced with this build, including support for WebAuthn, context free actions, and a switch to the elliptic cryptography library.

As a release candidate, we encourage the EOSIO developer community to test EOSJS 21.0.0-rc1 to help us refine the build as we work towards a stable release.

Security With WebAuthn for EOSIO Applications

The release of EOSJS 21.0.0-rc1 introduces support for WebAuthn on EOSIO blockchains. EOSIO is the first blockchain platform to support WebAuthn. This makes it possible for users to protect any high-risk transactions by using hardware keys for 2FA, such as a YubiKey or TouchID on a Macbook.

Developers who would like to integrate WebAuthn in their EOSIO applications may refer to our WebAuthn Example Application, which will be supported by this release candidate until a stable build of EOSJS 21.0.0 is ready.

Switching to the Elliptic Cryptographic Library

EOSJS 21.0.0-rc1 introduces a changeover from eosjs-ecc to the more robust elliptic cryptographic library. Keys and signatures are stored differently in the elliptic cryptographic library. In order to accommodate this change, we’ve added conversion functions to make the library more convenient for EOSIO developers. Eventually, eosjs-ecc will be deprecated. The conversion functions are a refactoring of existing code, so the switch shouldn’t affect the API. 

Context-Free Action Support

A context-free action entails computations that solely rely on transaction data. For instance, context-free actions make it possible to derive the public keys responsible for signing a transaction from transaction data and signature alone, without a dependency on the blockchain state. Similar to signature verification, context-free actions in EOSJS will eventually be able to be processed in parallel, and facilitate generalized signature verification for applications using EOSJS.

Additional Features

In addition to the details above the following changes are also being introduced with EOSJS 21.0.0-rc1:

Impact On Users

  • Once adopted, WebAuthn will enable the use of hardware keys, like a Yubikey, as 2FA devices for blockchain transactions on EOSIO applications.

Impact on Developers

  • Reference EOSJS 21.0.0-rc1 to support the WebAuthn Example App and integrate hardware key based 2FA for blockchain transactions in your EOSIO application.
  • ·Achieve greater efficiency through parallel processing with context-free action support.
  • Transition with ease between eosjs-ecc and the elliptic library with conversion functions.
  • Test and provide feedback on the new features of the EOSJS 21.0.0-rc1 as work continues towards releasing a stable version.

As with previous updates to EOSJS, we will continue to provide additional documentation and explanations of the library’s new features when EOSJS 21.0.0-rc1 is promoted to stable. 

Stay Connected

We are committed to offering best open source tools to connect applications to EOSIO blockchains, and developers can help us in that effort by testing and providing insights for this release candidate. If you would like to offer feedback and work more closely with our team to improve EOSIO for developers, you can send our developer relations team an email at developers@block.one.

. . .

Important Note: All material is 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 material, you accept and agree to the terms of the notice.

原文链接/Original URL:

About the author

By user
News.EOS.WiKi Bilingual News & Info Of EOS

Recent Posts