Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@0xpolygonid/js-sdk
Advanced tools
SDK to work with Polygon ID using JavaScript and TypeScript languages.
Polygon ID JS SDK is in public now. It may still contain bugs or missing functionality, that it will be added in next versions.
Installation:
npm install @0xpolygonid/js-sdk
See tests for examples on how to use SDK.
Run unit tests:
npm run test
Note: mtp / sig / auth / rhs files contain integration tests!
To run them, please set following variables:
export WALLET_KEY="...key in hex format"
export RPC_URL="...url to network rpc node"
export RHS_URL="..reverse hash service url"
export IPFS_URL="url for ipfs"
export STATE_CONTRACT_ADDRESS="state contract address"
export RHS_CONTRACT_ADDRESS="reverse hash service contract address"
And place actual circuits to test/proofs/testdata
Define path where documentation repository is located, for example:
const DOCS_DIR = '../js-sdk-tutorials/docs/api';
npm run tsc:declaration:watch
npm run doc:watch:website
Documentation can be found here
FAQs
SDK to work with Polygon ID
The npm package @0xpolygonid/js-sdk receives a total of 3,726 weekly downloads. As such, @0xpolygonid/js-sdk popularity was classified as popular.
We found that @0xpolygonid/js-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.