@abcpros/bitcore-lib-cash 中文文档教程

发布于 3年前 浏览 18 项目主页 更新于 3年前

Bitcore Lib Cash

NPM 包构建状态Coverage Status

一个纯粹而强大的 JavaScript 比特币现金库。

Principles

比特币现金是另一个强大的点对点平台下一代金融科技。 比特币网络的去中心化特性允许高度弹性的比特币基础设施,开发者社区需要可靠的开源工具来实施比特币应用程序和服务。

Bitcoin Cash changes

比特币现金使用不同的 sighash 进行交易签名。 bitcore-cash 中的实现已经针对原始比特币现金测试向量进行了测试(请参阅 /test 中的 sighash.json)。 bitcoin-cash 脚本评估中的修改尚未实施。

Get Started

npm install bitcore-lib-cash

将 Bitcore Cash 添加到您应用的 package.json

"dependencies": {
    "bitcore-lib-cash": "=0.18.0",
    ...
}

Documentation

完整的文档位于此处:bitcore 文档。 从项目的 JSDocs,您可以在其中找到每个 bitcore 实用程序的底层详细信息。

Examples

Building the Browser Bundle

为浏览器构建 bitcore-lib 完整包:

gulp browser

这将生成名为 bitcore-lib-cash.jsbitcore-lib-cash.min.js 的文件。

您还可以使用我们为每个版本提供的预生成文件以及项目维护人员之一的 PGP 签名。 要获取它们,请查看版本

Development & Tests

git clone https://github.com/bitpay/bitcore-lib-cash
cd bitcore-lib
npm install

运行所有测试:

gulp test

您还可以使用 gulp test:node 仅运行 Node.js 测试,仅使用 gulp test:browser 运行浏览器测试 或使用 gulp coverage 创建测试覆盖率报告(您可以打开 coverage/lcov-report/index.html 以可视化它)。

Security

我们在生产中使用 Bitcore,许多其他人也是如此,但在做任何与财务相关的事情时请使用常识! 我们对您的实施决定不承担任何责任。

如果您发现安全问题,请发送电子邮件至 security@bitpay.com。

Contributing

有关如何贡献的信息,请参阅主 bitcore 存储库上的 CONTRIBUTING.md

License

代码根据 MIT 许可证发布。

版权所有 2013-2019 BitPay, Inc. Bitcore 是 BitPay, Inc. 维护的商标。

Bitcore Lib Cash

NPM PackageBuild StatusCoverage Status

A pure and powerful JavaScript Bitcoin Cash library.

Principles

Bitcoin Cash is another powerful peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Bitcoin network allows for highly resilient bitcoin infrastructure, and the developer community needs reliable, open-source tools to implement bitcoin apps and services.

Bitcoin Cash changes

Bitcoin cash uses a different sighash for transaction signatures. The implementation in bitcore-cash has been tested against the original bitcoin-cash test vectors (see sighash.json in /test). bitcoin-cash modifications in script evaluation have not been implemented yet.

Get Started

npm install bitcore-lib-cash

Adding Bitcore Cash to your app's package.json:

"dependencies": {
    "bitcore-lib-cash": "=0.18.0",
    ...
}

Documentation

The complete docs are hosted here: bitcore documentation. There's also a bitcore API reference available generated from the JSDocs of the project, where you'll find low-level details on each bitcore utility.

Examples

Building the Browser Bundle

To build a bitcore-lib full bundle for the browser:

gulp browser

This will generate files named bitcore-lib-cash.js and bitcore-lib-cash.min.js.

You can also use our pre-generated files, provided for each release along with a PGP signature by one of the project's maintainers. To get them, checkout the releases.

Development & Tests

git clone https://github.com/bitpay/bitcore-lib-cash
cd bitcore-lib
npm install

Run all the tests:

gulp test

You can also run just the Node.js tests with gulp test:node, just the browser tests with gulp test:browser or create a test coverage report (you can open coverage/lcov-report/index.html to visualize it) with gulp coverage.

Security

We're using Bitcore in production, as are many others, but please use common sense when doing anything related to finances! We take no responsibility for your implementation decisions.

If you find a security issue, please email security@bitpay.com.

Contributing

See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.

License

Code released under the MIT license.

Copyright 2013-2019 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文