0.3.5-dd • Published 2 years ago

libzeropool-rs-node v0.3.5-dd

Weekly downloads
-
License
MIT OR Apache-2.0
Repository
-
Last release
2 years ago

libzeropool-rs-node

This project was bootstrapped by create-neon.

Installing libzeropool-rs-node

Installing libzeropool-rs-node requires a supported version of Node and Rust.

You can install the project with npm. In the project directory, run:

$ npm install

This fully installs the project, including installing any dependencies and running the build.

Building libzeropool-rs-node

If you have already installed the project and only want to run the build, run:

$ npm run build

This command uses the cargo-cp-artifact utility to run the Rust build and copy the built library into ./index.node.

Example

const zp = require('libzeropool-rs-node');

const tree = new zp.MerkleTree('./treedb');
const storage = new zp.TxStorage('./txdb');

for (let i = 0; i < 100; ++i) {
    storage.add(i, Buffer.alloc(128));
    tree.addHash(i, Buffer.alloc(32));
}

const proof = tree.getProof(50);
console.log('Proof', proof);

Available Scripts

In the project directory, you can run:

npm install

Installs the project, including running npm run build.

npm build

Builds the Node addon (index.node) from source.

npm test

Runs the unit tests by calling cargo test. You can learn more about adding tests to your Rust code from the Rust book.

0.2.10-dd

2 years ago

0.2.2-dd

2 years ago

0.2.6-dd

2 years ago

0.2.4-dd

2 years ago

0.3.4-dd

2 years ago

0.3.0-dd

2 years ago

0.3.2-dd

2 years ago

0.2.8-dd

2 years ago

0.2.1-dd

2 years ago

0.2.3-dd

2 years ago

0.2.7-dd

2 years ago

0.2.5-dd

2 years ago

0.3.5-dd

2 years ago

0.3.3-dd

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.3.1-dd

2 years ago

0.2.9-dd

2 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago