0.3.0-alpha.12.1 • Published 5 months ago

rgb-lib v0.3.0-alpha.12.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

RGB Lib Node.js bindings

npm version

This project builds Node.js packages for the rgb-lib Rust library, which is included as a git submodule. The bindings are created using the rgb-lib C++ bindings, which are located inside the rgb-lib submodule, and Swig.

Platform-specific packages

Bindings are platform-specific and are published into dedicated packages (under the @rgb-tools namespace). The main package is a thin layer that depends on the correct platform-specific package for the platform where it's being installed.

Requirements

  • Python 3
  • development tools (e.g. make, g++)

Installation

Install the package with npm:

npm install rgb-lib

Usage

Import the package with:

const rgblib = require("rgb-lib");

Then call its exported functions. As an example:

let keys = rgblib.generateKeys(rgblib.BitcoinNetwork.Regtest);
console.log(keys);

:warning: Warning: memory will be leaked if not taken care of manually

Check the example to see how you can manually avoid memory leaks

0.3.0-alpha.12.1

5 months ago

0.3.0-alpha.12

5 months ago

0.3.0-alpha.10

9 months ago

0.3.0-alpha.6

11 months ago

0.3.0-alpha.8

9 months ago

0.3.0-alpha.9

9 months ago

0.1.0-alpha.2

2 years ago

0.1.0-alpha.1

2 years ago