2acoin-cryptonote-util 中文文档教程
Master Build Status
Development Build Status
Node-Cryptonote-Util
注意:我们构建 Node.js 的预构建随 NPM 分发的本机插件模块二进制文件 这个包的安装版本可以加快你开发和使用这个包的速度。
在以下平台上受支持:
- Linux 64-bit
- Windows 64-bit
Dependencies
- Node.js LTS (https://nodejs.org/) 10+
- Boost (http://www.boost.org/)
Windows (if not using prebuilds)
如果您希望它在第一次就可以正常工作,请务必仔细阅读。
1) 以 管理员 身份打开 Windows Powershell 控制台
2) 运行命令:npm install -g windows-build-tools --vs2015
这需要一段时间。 请耐心等待。
Installation
npm install 2acoin-cryptonote-util
Intialization
TypeScript
Importing Individual Synchronous Methods
import {
address_decode,
construct_block_blob,
convert_blob,
convert_blob_bb,
get_block_id
} from '2acoin-cryptonote-util';
Importing Async Class
import CryptoNoteUtils from '2acoin-cryptonote-util';
CommonJS
const cnUtils = require('2acoin-cryptonote-util');
Documentation
您可以在此处找到此库的完整 TypeScript/JS 文档。
Master Build Status
Development Build Status
Node-Cryptonote-Util
Note: We build prebuilds of the Node.js native addon module binaries that are included for distribution with the NPM installed version of this package to speed up your development and use of this package.
Supported on the following platforms:
- Linux 64-bit
- Windows 64-bit
Dependencies
- Node.js LTS (https://nodejs.org/) 10+
- Boost (http://www.boost.org/)
Windows (if not using prebuilds)
Read very careful if you want this to work right the first time.
1) Open a Windows Powershell console as Administrator
2) Run the command: npm install -g windows-build-tools --vs2015
This will take a while. Sit tight.
Installation
npm install 2acoin-cryptonote-util
Intialization
TypeScript
Importing Individual Synchronous Methods
import {
address_decode,
construct_block_blob,
convert_blob,
convert_blob_bb,
get_block_id
} from '2acoin-cryptonote-util';
Importing Async Class
import CryptoNoteUtils from '2acoin-cryptonote-util';
CommonJS
const cnUtils = require('2acoin-cryptonote-util');
Documentation
You can find the full TypeScript/JS documentation for this library here.