@0xpolygonid/js-sdk v1.12.0
Polygon ID JS SDK
SDK to work with Polygon ID using JavaScript and TypeScript languages.
Disclaimer
Polygon ID JS SDK is in public now. It may still contain bugs or missing functionality, that it will be added in next versions.
Usage
Installation:
npm install @0xpolygonid/js-sdk
Circuits
And place actual circuits to test/proofs/testdata
curl -LO https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/latest.zip
Tests
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"
Examples
Please see examples for visit examples information.
Documentation
Generate documentation
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
License
js-sdk is part of the 0xPolygonID project copyright 2024 ZKID Labs AG
This project is licensed under either of
at your option.
13 days ago
16 days ago
16 days ago
29 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
7 months ago
7 months ago
9 months ago
8 months ago
9 months ago
9 months ago
7 months ago
7 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
1 year ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago