Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polymathnetwork/confidential-identity-nodejs

Package Overview
Dependencies
Maintainers
7
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymathnetwork/confidential-identity-nodejs

The wasm library for confidential identity.

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
7
Weekly downloads
 
Created
Source

WASM bindings for Confidential Identity Library

This library provides WASM binding for Confidential Identity Library. The Rust code can be found at polymath CIL library and the source code for the wasm bindings can be found at [WASM bindings][wasm-src].

CDD Provider Usage

After importing the content of this package in your javascript project, you can call the process_create_cdd_id function to create the CDD ID. The documentation for this function can be found by running cargo doc --open in the Rust directory.

Investors' Usage

After importing the content of this package in your javascript project, you can call the process_create_claim_proof function to create a confidential proof for their claim. The documentation for this function can be found by running cargo doc --open in the Rust directory.

Simple Claim Verifier

This is not supported since the verification is handled by PolyMesh.

Build Instructions

For comprehensive build instructions, refer to the README.md file in the root of the repository.

If you have all the necessary tools installed, you can build the wasm bindings using the following commands.

# If your active toolchain is stable, then run
rustup run nightly wasm-pack build --release

# If your active toolchain is nightly, then you can use the simpler version and run
wasm-pack build --release

This will create the bindings in ./pkg/ directory. You can import these into any javascript-based project using a wasm-loader.

Publish

Note that the name in the package.json file will be "confidential-identity". But, in order to properly publish the package, the name should be changed to @polymathnetwork/confidential-identity.

FAQs

Package last updated on 10 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc