Build for Wasm

We offer several ways to use Wasm Rings, including:

  1. Using Rings SDK

  2. Using Rings Browser Extension

  3. Build your custom-rings

Rings SDK

To fetch the SDK from npm, just:

npm i @ringsnetwork/rings-node

If you want to use the latest version of Rings Network, you can also directly incorporate the latest version or a specific branch of Rings Network into your Node.js project by modifying the package.json file. For example:

# package.json
"@ringsnetwork/rings-node": "https://github.com/RingsNetwork/rings-node.git#35412577e3369241add837cdc580435947c997d1",

As a developer, if you want to build local offline dependencies, you can do the following.

```text
"@ringsnetwork/rings-node": "git+file:../rings-node#master",

Note: The reason for using a git path instead of a local path is that npm, after a certain version, no longer executes the prepare script in local path packages, and rings-node relies on the prepare script to help with wasm compilation.

Rings Browser Extension

Rings Browser Extension is not released yet, but you can check the implementation at

Custom Build

To build Rings Network for WebAssembly, run the following commands:

Or build with wasm-pack

Last updated