Catalog npm
Back to packageRELEASE DETAILS

1.0.0-beta.5

npm

@0xpolygonid/js-sdk

SDK to work with Polygon ID

Published7 Apr 2023
Direct dependencies42
Transitive dependenciesNot calculated

README

Current package documentation

Privado ID JS SDK

SDK to work with Privado ID using JavaScript and TypeScript languages.

Usage

Installation:

npm install @0xpolygonid/js-sdk

Circuits

And place actual circuits to test/proofs/testdata

curl -LO https://circuits.privado.id/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

  1. Define path where documentation repository is located, for example:

        const DOCS_DIR = '../js-sdk-tutorials/docs/api';
    
  2.      npm run tsc:declaration:watch
    
  3.      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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 42

Native requirements
42 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ajv
Environment
{
  "local_name": "ajv",
  "alias": false,
  "peer_metadata": null
}
^6.12.6runtime
uuid
Environment
{
  "local_name": "uuid",
  "alias": false,
  "peer_metadata": null
}
^9.0.0runtime
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^1.2.1runtime
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^5.7.2runtime
rfc4648
Environment
{
  "local_name": "rfc4648",
  "alias": false,
  "peer_metadata": null
}
^1.5.2runtime
snarkjs
Environment
{
  "local_name": "snarkjs",
  "alias": false,
  "peer_metadata": null
}
^0.5.0runtime
base58-js
Environment
{
  "local_name": "base58-js",
  "alias": false,
  "peer_metadata": null
}
^1.0.4runtime
idb-keyval
Environment
{
  "local_name": "idb-keyval",
  "alias": false,
  "peer_metadata": null
}
^6.2.0runtime
cross-sha256
Environment
{
  "local_name": "cross-sha256",
  "alias": false,
  "peer_metadata": null
}
^1.2.0runtime
ffjavascript
Environment
{
  "local_name": "ffjavascript",
  "alias": false,
  "peer_metadata": null
}
^0.2.57runtime
@iden3/js-jwz
Environment
{
  "local_name": "@iden3/js-jwz",
  "alias": false,
  "peer_metadata": null
}
1.0.0-beta.2runtime
@iden3/js-crypto
Environment
{
  "local_name": "@iden3/js-crypto",
  "alias": false,
  "peer_metadata": null
}
1.0.0-beta.1runtime
ipfs-http-client
Environment
{
  "local_name": "ipfs-http-client",
  "alias": false,
  "peer_metadata": null
}
56.0.3runtime
buffer-browserify
Environment
{
  "local_name": "buffer-browserify",
  "alias": false,
  "peer_metadata": null
}
^0.2.5runtime
crypto-browserify
Environment
{
  "local_name": "crypto-browserify",
  "alias": false,
  "peer_metadata": null
}
^3.12.0runtime
@iden3/js-iden3-core
Environment
{
  "local_name": "@iden3/js-iden3-core",
  "alias": false,
  "peer_metadata": null
}
1.0.0-beta.2runtime
@iden3/js-merkletree
Environment
{
  "local_name": "@iden3/js-merkletree",
  "alias": false,
  "peer_metadata": null
}
1.0.0-beta.2runtime
@lumeweb/js-sha3-browser
Environment
{
  "local_name": "@lumeweb/js-sha3-browser",
  "alias": false,
  "peer_metadata": null
}
^0.8.1runtime
@iden3/js-jsonld-merklization
Environment
{
  "local_name": "@iden3/js-jsonld-merklization",
  "alias": false,
  "peer_metadata": null
}
1.0.0-beta.7runtime
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.3.7development
madge
Environment
{
  "local_name": "madge",
  "alias": false,
  "peer_metadata": null
}
^6.0.0development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
10.2.0development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^2.7.1development
esbuild
Environment
{
  "local_name": "esbuild",
  "alias": false,
  "peer_metadata": null
}
^0.15.15development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.9.1development
chokidar
Environment
{
  "local_name": "chokidar",
  "alias": false,
  "peer_metadata": null
}
^3.5.3development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^2.7.1development
ts-loader
Environment
{
  "local_name": "ts-loader",
  "alias": false,
  "peer_metadata": null
}
^9.4.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.8.4development
@types/chai
Environment
{
  "local_name": "@types/chai",
  "alias": false,
  "peer_metadata": null
}
^4.3.4development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^18.11.17development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
^10.0.1development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.1development
axios-mock-adapter
Environment
{
  "local_name": "axios-mock-adapter",
  "alias": false,
  "peer_metadata": null
}
^1.21.2development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
^8.5.0development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
^4.2.1development
@types/chai-as-promised
Environment
{
  "local_name": "@types/chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.5development
@microsoft/api-extractor
Environment
{
  "local_name": "@microsoft/api-extractor",
  "alias": false,
  "peer_metadata": null
}
^7.34.4development
@microsoft/api-documenter
Environment
{
  "local_name": "@microsoft/api-documenter",
  "alias": false,
  "peer_metadata": null
}
^7.20.1development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^5.41.0development
@esbuild-plugins/node-globals-polyfill
Environment
{
  "local_name": "@esbuild-plugins/node-globals-polyfill",
  "alias": false,
  "peer_metadata": null
}
^0.1.1development
@esbuild-plugins/node-modules-polyfill
Environment
{
  "local_name": "@esbuild-plugins/node-modules-polyfill",
  "alias": false,
  "peer_metadata": null
}
^0.1.4development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "6e51d003696c1286046e5db0ef880587ffa7905c",
  "tarball": "https://registry.npmjs.org/@0xpolygonid/js-sdk/-/js-sdk-1.0.0-beta.5.tgz",
  "fileCount": 499,
  "integrity": "sha512-z95zriUjsXtz919iBygEv7iMzLP/o0AUdyOSPoOMq07fqdNV0J1eMLsekT0BEJby5fByrF8ho7AhFqUJQZTo/A==",
  "signatures": [
    {
      "sig": "MEUCIB81fLQioH0ST17aJpBrvz+F1U/ksEkjLthqdCZqLr6yAiEApUSZ6dHWEsb6RH1gLuJ6q/By/Q+KAJuSQoSe31zB0T4=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 28739141,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMA28ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqteg//RMgV5rLjN4X/Z9fRlMlHabB+D6OxazKGb3+hD4KjsCK5cf+D\r\nONlc4iDl4enXQecZ3XCs6v29YU9kGdY3wdfJflksJ/wFfv5JzJ96bc5kZQ+0\r\nNAHgmxb+nF01H07Uv+8sO1NzZA8QTUJEg3GRxAH4nLL2jlKijo+8OaHw08ZJ\r\n2oY/hTeo+5Oj7WmdYYpU5ftJCHkukYmShkIDM7+9xnM2rBRlDCGMGuVh69Md\r\nfRlJkI98Os76aYB4wlr98MemBzDw3fE5YH2ji6uM9u2S0BKRUaB6k0EO5jlx\r\n/wGwqFSmKa+E7rlEfrYYJzzhyp5Spluq0Ys5gY4wfi1LkP1QOruqg8eVp3UM\r\nu2IKZi+M5RcwHwA7xDFPFt7NjIoM7O9BDKu0rBvm8jBH9oJXMXrnbkPH/K/1\r\nYYGExj+Hl7ZBGvcvbeZTYR4ZPUtaR8J+/y7o9AVXlWEt0gAu2REGh1kdBO+E\r\nOYQMhR7ZoJwY7vdcwgVscjtvEjoOgnrOabYES5opcv4cn29azxlncZAPvk9i\r\n8lu4NcQIoJw8oj8tBCu9D6aVuo5p21vUR08vN+YplBA5MBpXGLKyWNv1OW4j\r\nGyRrUM1T72gnxxgr3qHnUTBqHi/HMzTr07QCLykXOJU8WpD0jtq+E3z8UBZx\r\nXpyhgr+W9N43sANLaHqk4FwRJgrbqZf1mME=\r\n=1iV/\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0xpolygonid/js-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:1d78384d973d565ce0a8b0e8a4460a8deae72807d31e94d793704cfedd4e4e4d

Other collected versions

1.46.125 Sept1.45.017 Jun1.44.02 Jun1.43.018 Mar1.42.14 Mar1.42.02 MarView all collected versions →