2acoin-cryptonote-util 中文文档教程

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

图像

Master Build Status

< img src="https://github.com/2acoin/node-cryptonote-util/workflows/CI%20Build%20Tests/badge.svg?branch=master" alt="构建状态">

Development Build Status

构建状态

NPM

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 文档。

image

Master Build Status

Build Status

Development Build Status

Build Status

NPM

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.

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