{"_id":"@code4rena/zkpassport-sdk","_rev":"10-21f560284e8cb453817b11ac5883e7d8","name":"@code4rena/zkpassport-sdk","dist-tags":{"esmfix":"1.0.2","latest":"1.0.7"},"versions":{"1.0.0-esmfix":{"name":"@code4rena/zkpassport-sdk","version":"1.0.0-esmfix","keywords":["zkpassport","zkpassport-sdk","sdk"],"author":{"name":"ZKPassport"},"license":"Apache-2.0","_id":"@code4rena/zkpassport-sdk@1.0.0-esmfix","maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"dist":{"shasum":"e7767144c55b0aef234d977ad1701a29fc9600d1","tarball":"https://registry.npmjs.org/@code4rena/zkpassport-sdk/-/zkpassport-sdk-1.0.0-esmfix.tgz","fileCount":3,"integrity":"sha512-LYhwhfKoj+lP5BRLo8a5ugXWKLjnR6aGL1BVK4zc9qUkjYnV9Zk5gfWkTOFK2RJ4dn1asA9jQDBXQXYZItHE5Q==","signatures":[{"sig":"MEUCIQCEZ81YON3YxLE6HX0MpSHshHq6w7bsisQ6oaQ3jkTRiAIgJjnID08NOv2XcONvltM0j2WpIYsiN2lVA7Y6PpNXdkw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18853},"main":"./dist/esm/index.js","type":"module","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"3625730dea6c53c0f8a41da7c0311e0e11d50575","private":false,"scripts":{"test":"bun test","build":"bun run build:types && tsup --config tsup.config.ts","check":"prettier -c src tests && eslint src tests --ext .ts","clean":"rimraf dist tsconfig.tsbuildinfo","format":"prettier -c -w src tests","coverage":"bun test --coverage","dev:build":"DEV_BUILD=true bun run build","build:types":"tsc -b && tsc-alias -v -p tsconfig.json -f","validate-package":"../../scripts/validate-package.sh"},"_npmUser":{"name":"c4-bot","email":"bots+npm@code4rena.com"},"_npmVersion":"11.6.2","description":"Privacy-preserving identity verification using passports and ID cards","directories":{},"_nodeVersion":"24.5.0","dependencies":{"ws":"^8.18.0","pako":"^2.1.0","viem":"^2.27.2","tslib":"^2.8.1","buffer":"^6.0.3","@aztec/bb.js":"2.0.3","@noble/hashes":"^1.7.2","@noble/ciphers":"^1.2.1","@noble/secp256k1":"^2.2.3","@obsidion/bridge":"^0.11.2","@zkpassport/utils":"workspace:*","i18n-iso-countries":"^7.12.0","@zkpassport/registry":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.1","devDependencies":{"@types/ws":"^8.5.12","@types/pako":"^2.0.3"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zkpassport-sdk_1.0.0-esmfix_1768508181495_0.5011806980011642","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@code4rena/zkpassport-sdk","version":"1.0.0","keywords":["zkpassport","zkpassport-sdk","sdk"],"author":{"name":"ZKPassport"},"license":"Apache-2.0","_id":"@code4rena/zkpassport-sdk@1.0.0","maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"dist":{"shasum":"78c41721b58d5130376db8211381806b43057578","tarball":"https://registry.npmjs.org/@code4rena/zkpassport-sdk/-/zkpassport-sdk-1.0.0.tgz","fileCount":3,"integrity":"sha512-VDyw9Tl0KS6z5zGYk+YN/15Gg4eO3Ky8OsfD4VeNNscFrE1SbhVyRibBatnfAdVJiCnQl7RaR3qy9sSAVNTIoA==","signatures":[{"sig":"MEYCIQCww9QMqGPs3V2O2znICWgniZQILy4qhleeTfhogvyvwQIhAJpxnIlza22NkgutnF4GNfeT+q/JBZPrXhnwYQGA4oMl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18839},"main":"./dist/esm/index.js","type":"module","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"3625730dea6c53c0f8a41da7c0311e0e11d50575","private":false,"scripts":{"test":"bun test","build":"bun run build:types && tsup --config tsup.config.ts","check":"prettier -c src tests && eslint src tests --ext .ts","clean":"rimraf dist tsconfig.tsbuildinfo","format":"prettier -c -w src tests","coverage":"bun test --coverage","dev:build":"DEV_BUILD=true bun run build","build:types":"tsc -b && tsc-alias -v -p tsconfig.json -f","validate-package":"../../scripts/validate-package.sh"},"_npmUser":{"name":"c4-bot","email":"bots+npm@code4rena.com"},"_npmVersion":"11.6.2","description":"Privacy-preserving identity verification using passports and ID cards","directories":{},"_nodeVersion":"24.5.0","dependencies":{"ws":"^8.18.0","pako":"^2.1.0","viem":"^2.27.2","tslib":"^2.8.1","buffer":"^6.0.3","@aztec/bb.js":"2.0.3","@noble/hashes":"^1.7.2","@noble/ciphers":"^1.2.1","@noble/secp256k1":"^2.2.3","@obsidion/bridge":"^0.11.2","@zkpassport/utils":"^0.32.1","i18n-iso-countries":"^7.12.0","@zkpassport/registry":"^0.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.1","readmeFilename":"README.md","devDependencies":{"@types/ws":"^8.5.12","@types/pako":"^2.0.3"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zkpassport-sdk_1.0.0_1768508942805_0.04695598445119109","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@code4rena/zkpassport-sdk","version":"1.0.1","keywords":["zkpassport","zkpassport-sdk","sdk"],"author":{"name":"ZKPassport"},"license":"Apache-2.0","_id":"@code4rena/zkpassport-sdk@1.0.1","maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"dist":{"shasum":"7c56b6d102b5f7239395a68c2f3ce06212931d28","tarball":"https://registry.npmjs.org/@code4rena/zkpassport-sdk/-/zkpassport-sdk-1.0.1.tgz","fileCount":3,"integrity":"sha512-mYewBf3MNex8yJuFj31lj92ea1e+nKdb/66owtszxvOrE0c9JsOsEp0ATXysqwBHlkeJpo2W3yUoZqUTE0Aqqw==","signatures":[{"sig":"MEUCIB4S2s/EbyIyJHkvsrJaav4LDR8kE/a71FEZK1vWK1zEAiEAxRNWZcFcn7a0XT6BB4Uc8tc2/8vgAMr/UcXxCOUwsug=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18839},"main":"./dist/esm/index.js","type":"module","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"3625730dea6c53c0f8a41da7c0311e0e11d50575","private":false,"scripts":{"test":"bun test","build":"bun run build:types && tsup --config tsup.config.ts","check":"prettier -c src tests && eslint src tests --ext .ts","clean":"rimraf dist tsconfig.tsbuildinfo","format":"prettier -c -w src tests","coverage":"bun test --coverage","dev:build":"DEV_BUILD=true bun run build","build:types":"tsc -b && tsc-alias -v -p tsconfig.json -f","validate-package":"../../scripts/validate-package.sh"},"_npmUser":{"name":"c4-bot","email":"bots+npm@code4rena.com"},"_npmVersion":"11.6.2","description":"Privacy-preserving identity verification using passports and ID cards","directories":{},"_nodeVersion":"24.5.0","dependencies":{"ws":"^8.18.0","pako":"^2.1.0","viem":"^2.27.2","tslib":"^2.8.1","buffer":"^6.0.3","@aztec/bb.js":"2.0.3","@noble/hashes":"^1.7.2","@noble/ciphers":"^1.2.1","@noble/secp256k1":"^2.2.3","@obsidion/bridge":"^0.11.2","@zkpassport/utils":"^0.32.1","i18n-iso-countries":"^7.12.0","@zkpassport/registry":"^0.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.1","readmeFilename":"README.md","devDependencies":{"@types/ws":"^8.5.12","@types/pako":"^2.0.3"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zkpassport-sdk_1.0.1_1768509029829_0.7372771229156558","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@code4rena/zkpassport-sdk","version":"1.0.2","keywords":["zkpassport","zkpassport-sdk","sdk"],"author":{"name":"ZKPassport"},"license":"Apache-2.0","_id":"@code4rena/zkpassport-sdk@1.0.2","maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"dist":{"shasum":"8d827915096c211164135e843a2f6d6cf51e277f","tarball":"https://registry.npmjs.org/@code4rena/zkpassport-sdk/-/zkpassport-sdk-1.0.2.tgz","fileCount":7,"integrity":"sha512-i09/9MmQo/iQ59yM+nAAUD0kLMVcTCiyFKjq93PLjjCsthPPNZmsNvAxC34/ah21yikb00wusOIyRnlLRGtzjA==","signatures":[{"sig":"MEYCIQCq3Zi9AhXdsOqacvN2rXTGaV1NVOnI9klS72aVlYOwYwIhAK1SFSugxXT4vHtc5BgkaaY3k2rCJ+9DFpbCihE4fLi8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":195351},"main":"./dist/esm/index.js","type":"module","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"3625730dea6c53c0f8a41da7c0311e0e11d50575","private":false,"scripts":{"test":"bun test","build":"bun run build:types && tsup --config tsup.config.ts","check":"prettier -c src tests && eslint src tests --ext .ts","clean":"rimraf dist tsconfig.tsbuildinfo","format":"prettier -c -w src tests","coverage":"bun test --coverage","dev:build":"DEV_BUILD=true bun run build","build:types":"tsc -b && tsc-alias -v -p tsconfig.json -f","validate-package":"../../scripts/validate-package.sh"},"_npmUser":{"name":"c4-bot","email":"bots+npm@code4rena.com"},"_npmVersion":"11.6.2","description":"Privacy-preserving identity verification using passports and ID cards","directories":{},"_nodeVersion":"24.5.0","dependencies":{"ws":"^8.18.0","pako":"^2.1.0","viem":"^2.27.2","tslib":"^2.8.1","buffer":"^6.0.3","@aztec/bb.js":"2.0.3","@noble/hashes":"^1.7.2","@noble/ciphers":"^1.2.1","@noble/secp256k1":"^2.2.3","@obsidion/bridge":"^0.11.2","@zkpassport/utils":"^0.32.1","i18n-iso-countries":"^7.12.0","@zkpassport/registry":"^0.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.1","readmeFilename":"README.md","devDependencies":{"@types/ws":"^8.5.12","@types/pako":"^2.0.3"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zkpassport-sdk_1.0.2_1768509514585_0.8072967077670157","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@code4rena/zkpassport-sdk","version":"1.0.3","keywords":["zkpassport","zkpassport-sdk","sdk"],"author":{"name":"ZKPassport"},"license":"Apache-2.0","_id":"@code4rena/zkpassport-sdk@1.0.3","maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"dist":{"shasum":"672b39a52598994bb2b7f2c0a558bfec5511287e","tarball":"https://registry.npmjs.org/@code4rena/zkpassport-sdk/-/zkpassport-sdk-1.0.3.tgz","fileCount":9,"integrity":"sha512-EdQQLjwrR5iWs522lpRj0/E/bnFkfBAw0yzH5Sem5+bpkAOcuuV2dy4UYWNAB+/hoSKskOtTNDVrt7YgpVTlnQ==","signatures":[{"sig":"MEUCIQDmPt9Dl6BwUx0e7wYarsEC41MeumBnIgc77LJn3TZKKwIgaLNGpL48tOGCOtY77Kf0AQDVw/Gj90v6pGEddD7IPVM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1094941},"main":"./dist/esm/index.js","type":"module","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"3625730dea6c53c0f8a41da7c0311e0e11d50575","private":false,"scripts":{"test":"bun test","build":"bun run build:types && tsup --config tsup.config.ts","check":"prettier -c src tests && eslint src tests --ext .ts","clean":"rimraf dist tsconfig.tsbuildinfo","format":"prettier -c -w src tests","coverage":"bun test --coverage","dev:build":"DEV_BUILD=true bun run build","build:types":"tsc -b && tsc-alias -v -p tsconfig.json -f","validate-package":"../../scripts/validate-package.sh"},"_npmUser":{"name":"c4-bot","email":"bots+npm@code4rena.com"},"_npmVersion":"11.11.0","description":"Privacy-preserving identity verification using passports and ID cards","directories":{},"_nodeVersion":"24.5.0","dependencies":{"ws":"^8.18.0","pako":"^2.1.0","viem":"^2.27.2","tslib":"^2.8.1","buffer":"^6.0.3","@aztec/bb.js":"2.0.3","@noble/hashes":"^1.7.2","@noble/ciphers":"^1.2.1","@noble/secp256k1":"^2.2.3","@obsidion/bridge":"^0.11.2","@zkpassport/utils":"^0.32.1","i18n-iso-countries":"^7.12.0","@zkpassport/registry":"^0.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.1","devDependencies":{"@types/ws":"^8.5.12","@types/pako":"^2.0.3"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zkpassport-sdk_1.0.3_1778272437216_0.14489421014889903","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@code4rena/zkpassport-sdk","version":"1.0.4","keywords":["zkpassport","zkpassport-sdk","sdk"],"author":{"name":"ZKPassport"},"license":"Apache-2.0","_id":"@code4rena/zkpassport-sdk@1.0.4","maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"homepage":"https://github.com/zkpassport/zkpassport-packages#readme","bugs":{"url":"https://github.com/zkpassport/zkpassport-packages/issues"},"dist":{"shasum":"ddfb02cd0409154b3ccec081199359ed6ff69005","tarball":"https://registry.npmjs.org/@code4rena/zkpassport-sdk/-/zkpassport-sdk-1.0.4.tgz","fileCount":9,"integrity":"sha512-nE+Xm8fzRzO+2MopxDBOdmus5zJNKo7usquY2Z1DA8ZqueKubYtDGWV7E+Ppc7UbtBQcXHWb+XI7LoTn8dDpGQ==","signatures":[{"sig":"MEQCIGzq16YO4bFMXESWoww7kHqNK0OnE30QJXXgRMEBAjdLAiAcDK19IAYh8StViaHUc4ASIowuhWQt4l9pibJfQSJ2tA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1094954},"main":"./dist/esm/index.js","type":"module","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"3625730dea6c53c0f8a41da7c0311e0e11d50575","private":false,"scripts":{"test":"bun test","build":"tsup --config tsup.config.ts","check":"prettier -c src tests && eslint src tests --ext .ts","clean":"rimraf dist tsconfig.tsbuildinfo","format":"prettier -c -w src tests","coverage":"bun test --coverage","dev:build":"DEV_BUILD=true bun run build"},"_npmUser":{"name":"c4-bot","email":"bots+npm@code4rena.com"},"repository":{"url":"git+https://github.com/zkpassport/zkpassport-packages.git","type":"git","directory":"packages/zkpassport-sdk"},"_npmVersion":"11.11.0","description":"Privacy-preserving identity verification using passports and ID cards","directories":{},"_nodeVersion":"24.5.0","dependencies":{"ws":"^8.18.0","pako":"^2.1.0","viem":"^2.27.2","tslib":"^2.8.1","buffer":"^6.0.3","@aztec/bb.js":"4.2.0-aztecnr-rc.2","@noble/hashes":"^2.0.1","@noble/ciphers":"^1.2.1","@noble/secp256k1":"^2.2.3","@obsidion/bridge":"^0.11.2","@zkpassport/utils":"^0.36.1","i18n-iso-countries":"^7.12.0","@zkpassport/registry":"^0.14.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.1","devDependencies":{"@types/ws":"^8.5.12","@types/pako":"^2.0.3"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zkpassport-sdk_1.0.4_1778274303258_0.10970641016644511","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@code4rena/zkpassport-sdk","version":"1.0.5","keywords":["zkpassport","zkpassport-sdk","sdk"],"author":{"name":"ZKPassport"},"license":"Apache-2.0","_id":"@code4rena/zkpassport-sdk@1.0.5","maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"dist":{"shasum":"90dc9fef4ceed8fc8f8b095df32795fa3df23fbb","tarball":"https://registry.npmjs.org/@code4rena/zkpassport-sdk/-/zkpassport-sdk-1.0.5.tgz","fileCount":9,"integrity":"sha512-rz2eIzWkDQlSw3tmvp5/JwIPD9Udu44jD2mEaCb905rTkeSky8sJIVLo4hMlqbWW2bpDn8b9jpEIMNu2LOAA+w==","signatures":[{"sig":"MEYCIQCor7thQ3Zw+0S40Zc7HYzkXtCXnERX/mIuzc+ZwMhR0QIhANMIpQ1KHSDfZAipOUYwqbdg9nKq3fc4S7hhGF3Q/TR+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1094954},"main":"./dist/esm/index.js","type":"module","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"3625730dea6c53c0f8a41da7c0311e0e11d50575","private":false,"scripts":{"test":"bun test","build":"bun run build:types && tsup --config tsup.config.ts","check":"prettier -c src tests && eslint src tests --ext .ts","clean":"rimraf dist tsconfig.tsbuildinfo","format":"prettier -c -w src tests","coverage":"bun test --coverage","dev:build":"DEV_BUILD=true bun run build","build:types":"tsc -b && tsc-alias -v -p tsconfig.json -f","validate-package":"../../scripts/validate-package.sh"},"_npmUser":{"name":"c4-bot","email":"bots+npm@code4rena.com"},"_npmVersion":"11.11.0","description":"Privacy-preserving identity verification using passports and ID cards","directories":{},"_nodeVersion":"24.5.0","dependencies":{"ws":"^8.18.0","pako":"^2.1.0","viem":"^2.27.2","tslib":"^2.8.1","buffer":"^6.0.3","@aztec/bb.js":"4.2.0-aztecnr-rc.2","@noble/hashes":"^2.0.1","@noble/ciphers":"^1.2.1","@noble/secp256k1":"^2.2.3","@obsidion/bridge":"^0.11.2","@zkpassport/utils":"^0.36.1","i18n-iso-countries":"^7.12.0","@zkpassport/registry":"^0.14.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.1","devDependencies":{"@types/ws":"^8.5.12","@types/pako":"^2.0.3"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zkpassport-sdk_1.0.5_1778274396371_0.2418219721799333","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@code4rena/zkpassport-sdk","version":"1.0.6","keywords":["zkpassport","zkpassport-sdk","sdk"],"author":{"name":"ZKPassport"},"license":"Apache-2.0","_id":"@code4rena/zkpassport-sdk@1.0.6","maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"dist":{"shasum":"1247617317a0ea046caf46f987eb24e7955df233","tarball":"https://registry.npmjs.org/@code4rena/zkpassport-sdk/-/zkpassport-sdk-1.0.6.tgz","fileCount":9,"integrity":"sha512-okjsLr9Y9+OZHJsaUk0Eg1e9reFZdoTpcVnrjgZgAmiBgdt6mB6WTGPQT24yQHFtwIyZ0jixlBDR4hpi/GrAEw==","signatures":[{"sig":"MEYCIQCD5AoywTzeL1CrkbE1F+INNuf7IyvNi44KltkxzlwYswIhAMLUsTc258PYd/ph62MmUCfx0heiB65gAj7XmpazJ1IC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1096032},"main":"./dist/esm/index.js","type":"module","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"gitHead":"3625730dea6c53c0f8a41da7c0311e0e11d50575","private":false,"scripts":{"test":"bun test","build":"bun run build:types && tsup --config tsup.config.ts","check":"prettier -c src tests && eslint src tests --ext .ts","clean":"rimraf dist tsconfig.tsbuildinfo","format":"prettier -c -w src tests","coverage":"bun test --coverage","dev:build":"DEV_BUILD=true bun run build","build:types":"tsc -b && tsc-alias -v -p tsconfig.json -f","validate-package":"../../scripts/validate-package.sh"},"_npmUser":{"name":"c4-bot","email":"bots+npm@code4rena.com"},"_npmVersion":"11.11.0","description":"Privacy-preserving identity verification using passports and ID cards","directories":{},"_nodeVersion":"24.5.0","dependencies":{"ws":"^8.18.0","pako":"^2.1.0","viem":"^2.27.2","tslib":"^2.8.1","buffer":"^6.0.3","@aztec/bb.js":"4.2.0-aztecnr-rc.2","@noble/hashes":"^2.0.1","@noble/ciphers":"^1.2.1","@noble/secp256k1":"^2.2.3","@obsidion/bridge":"^0.11.2","@zkpassport/utils":"^0.36.1","i18n-iso-countries":"^7.12.0","@zkpassport/registry":"^0.14.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.1","devDependencies":{"@types/ws":"^8.5.12","@types/pako":"^2.0.3"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/zkpassport-sdk_1.0.6_1778279646372_0.8417107821247363","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@code4rena/zkpassport-sdk","version":"1.0.7","private":false,"publishConfig":{"access":"public"},"description":"Privacy-preserving identity verification using passports and ID cards","author":{"name":"ZKPassport"},"license":"Apache-2.0","type":"module","main":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.cjs"}},"scripts":{"build":"bun run build:types && tsup --config tsup.config.ts","build:types":"tsc -b && tsc-alias -v -p tsconfig.json -f","dev:build":"DEV_BUILD=true bun run build","clean":"rimraf dist tsconfig.tsbuildinfo","test":"bun test","coverage":"bun test --coverage","check":"prettier -c src tests && eslint src tests --ext .ts","format":"prettier -c -w src tests","validate-package":"../../scripts/validate-package.sh"},"keywords":["zkpassport","zkpassport-sdk","sdk"],"dependencies":{"@aztec/bb.js":"4.2.0-aztecnr-rc.2","@noble/ciphers":"^1.2.1","@noble/hashes":"^2.0.1","@noble/secp256k1":"^2.2.3","@obsidion/bridge":"^0.11.2","@zkpassport/registry":"^0.14.0","@zkpassport/utils":"^0.36.1","buffer":"^6.0.3","i18n-iso-countries":"^7.12.0","pako":"^2.1.0","tslib":"^2.8.1","viem":"^2.27.2","ws":"^8.18.0"},"devDependencies":{"@types/pako":"^2.0.3","@types/ws":"^8.5.12"},"peerDependencies":{"typescript":"^5.0.0"},"packageManager":"bun@1.3.1","gitHead":"3625730dea6c53c0f8a41da7c0311e0e11d50575","_id":"@code4rena/zkpassport-sdk@1.0.7","_nodeVersion":"24.5.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-8ZRMwckZccWPCmweGTfIma3H5BaJkdTsm9+asfOYBG+vOhii2N9J9tyVLY7x/wbI02R1vkaOmbhorrPMcRTT+Q==","shasum":"146f9348eacdde458bdf1932bf9c4a18c652abdd","tarball":"https://registry.npmjs.org/@code4rena/zkpassport-sdk/-/zkpassport-sdk-1.0.7.tgz","fileCount":9,"unpackedSize":1094946,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDKBuXRo5nGXyJ9WLzws9E/phowCoyB+D4FI5DkWM/olgIgDSfEdR9fp4SpC2vtXii5cI0O+RHysy5c1b/4MqaHzqc="}]},"_npmUser":{"name":"c4-bot","email":"bots+npm@code4rena.com"},"directories":{},"maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/zkpassport-sdk_1.0.7_1778517939482_0.6721135506957507"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-15T20:16:21.361Z","modified":"2026-05-11T16:45:39.890Z","1.0.0-esmfix":"2026-01-15T20:16:21.663Z","1.0.0":"2026-01-15T20:29:02.944Z","1.0.1":"2026-01-15T20:30:29.945Z","1.0.2":"2026-01-15T20:38:34.750Z","1.0.3":"2026-05-08T20:33:57.364Z","1.0.4":"2026-05-08T21:05:03.402Z","1.0.5":"2026-05-08T21:06:36.578Z","1.0.6":"2026-05-08T22:34:06.595Z","1.0.7":"2026-05-11T16:45:39.747Z"},"author":{"name":"ZKPassport"},"license":"Apache-2.0","keywords":["zkpassport","zkpassport-sdk","sdk"],"description":"Privacy-preserving identity verification using passports and ID cards","maintainers":[{"name":"c4-bot","email":"bots+npm@code4rena.com"}],"readme":"# ZKPassport SDK\n\nPrivacy-preserving identity verification using passports and ID cards.\n\n_⚠️ Warning ⚠️_\n\n_This is experimental software that has not been audited yet. Use at your own risk._\n\n## Installation\n\n```\nnpm install @zkpassport/sdk\n```\n\n## How to use\n\n```ts\nimport { ZKPassport, EU_COUNTRIES } from \"@zkpassport/sdk\"\n\n// Replace with your domain\nconst zkPassport = new ZKPassport(\"demo.zkpassport.id\")\n\n// Specify your app name, logo and the purpose of the request\n// you'll send to your visitors or users\nconst queryBuilder = await zkPassport.request({\n  name: \"ZKPassport\",\n  logo: \"https://zkpassport.id/logo.png\",\n  purpose: \"Prove you are an adult from the EU but not from Scandinavia\",\n  // The scope is optional and can be used to scope the unique identifier\n  // of the request to a specific use case\n  // By default, the request's unique identifier is scoped to your domain name only\n  scope: \"eu-adult-not-scandinavia\",\n})\n\n// Specify the data you want to disclose\n// Then you can call the `done` method to get the url and the callbacks to follow the progress\n// and get back the result along with the proof\n// The example below requests to disclose the firstname, prove the user is at least 18 years old,\n// prove the user is from the EU but not from a Scandinavian country (note that Norway is not in the EU)\nconst {\n  url,\n  requestId,\n  onRequestReceived,\n  onGeneratingProof,\n  onProofGenerated,\n  onResult,\n  onReject,\n  onError,\n} = queryBuilder\n  .disclose(\"firstname\")\n  .gte(\"age\", 18)\n  .in(\"nationality\", EU_COUNTRIES)\n  .out(\"nationality\", [\"Sweden\", \"Denmark\"])\n  .done()\n\n// Generate a QR Code with the url and let your user scan it\n// or transform it into a button if the user is on their phone\n\nonRequestReceived(() => {\n  // The user scanned the QR code or clicked the link to the request\n  // Essentially, this means the request popup is now opened\n  // on the user phone\n  console.log(\"Request received\")\n})\n\nonGeneratingProof(() => {\n  // The user accepted the request and the proof is being generated\n  console.log(\"Generating proof\")\n})\n\n// You probably don't need to use this callback\n// But if you want to get the proofs and verify them manually, it's here\nonProofGenerated(({ proof, vkeyHash, version, name }: ProofResult) => {\n  // One of the proofs has been generated\n  // Here, you can retrieve the proof manually and verify it\n  // But note that the verification of the proofs is handled\n  // automatically by the SDK\n  console.log(\"Proof generated\", proof)\n  console.log(\"Verification key hash\", vkeyHash)\n  console.log(\"Version\", version)\n  console.log(\"Name\", name)\n})\n\n// That's the callback you're looking for\nonResult(\n  ({\n    uniqueIdentifier,\n    verified,\n    result,\n  }: {\n    uniqueIdentifier: string\n    verified: boolean\n    result: QueryResult\n  }) => {\n    // All the proofs have been generated and the final result is available\n    console.log(\"firstname\", result.firstname.disclose.result)\n    console.log(\"age over 18\", result.age.gte.result)\n    console.log(\"nationality in EU\", result.nationality.in.result)\n    console.log(\"nationality not from Scandinavia\", result.nationality.out.result)\n    // You can also retrieved what were the values originally requested\n    console.log(\"age over\", result.age.gte.expected)\n    console.log(\"nationality in\", result.nationality.in.expected)\n    console.log(\"nationality not in\", result.nationality.out.expected)\n    // You can make sure the proof are valid by checking verified is set to true\n    console.log(\"proofs are valid\", verified)\n    // You can also retrieve the unique identifier associated to this request\n    // The assumption is that the unique identifier will be the same if coming\n    // from the same ID for the same domain name and scope\n    // So you can use it to identify if the user has already provided the proof\n    // for this specific use case\n    console.log(\"unique identifier\", uniqueIdentifier)\n  },\n)\n```\n\n### Using with Next.js\n\nYou can integrate `@zkpassport/sdk` into a Next.js application by creating a backend API route and calling it from your frontend.\n\n#### **Backend (API Route)**\n\n**App Router:** `app/api/zkpassport/route.ts`\n\n```typescript\nimport { NextResponse } from \"next/server\"\nimport { ZKPassport } from \"@zkpassport/sdk\"\n\nexport async function GET() {\n  const zkPassport = new ZKPassport(\"demo.zkpassport.id\") // Replace with your domain\n  const queryBuilder = await zkPassport.request({\n    name: \"ZKPassport Demo\",\n    logo: \"https://via.placeholder.com/150\",\n    purpose: \"Verify user nationality and first name\",\n  })\n  const { url } = queryBuilder.disclose(\"nationality\").disclose(\"firstname\").done()\n  return NextResponse.json({ url })\n}\n```\n\n#### **Frontend Example**\n\n**App Router:** `app/page.tsx`\n\n```tsx\n\"use client\"\nimport { useEffect, useState } from \"react\"\n\nexport default function Home() {\n  const [verificationUrl, setVerificationUrl] = useState<string | null>(null)\n\n  useEffect(() => {\n    fetch(\"/api/zkpassport\")\n      .then((res) => res.json())\n      .then((data) => setVerificationUrl(data.url))\n      .catch(console.error)\n  }, [])\n\n  return (\n    <div>\n      <h1>ZKPassport Demo</h1>\n      {verificationUrl ? (\n        <a href={verificationUrl} target=\"_blank\" rel=\"noopener noreferrer\">\n          <button>Verify Identity</button>\n        </a>\n      ) : (\n        <p>Loading...</p>\n      )}\n    </div>\n  )\n}\n```\n\n## Local installation\n\n### Clone the repository\n\n```sh\ngit clone https://github.com/zkpassport/zkpassport-sdk.git\ncd zkpassport-sdk\n```\n\n### Install dependencies\n\n```sh\nbun install\n```\n\n### Run Tests\n\n```sh\nbun test\n```\n\n### Simulate Websocket Messages\n\nSimulate mobile websocket messages: `bun run scripts/simulate.ts mobile`\n\nSimulate frontend websocket messages: `bun run scripts/simulate.ts frontend`\n","readmeFilename":"README.md"}