{"_id":"zknotary-verifier","_rev":"36-ea0ae758b45d2eb77858d1f39719ea58","name":"zknotary-verifier","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"zknotary-verifier","collaborators":["Rafael Campos <racampos@gmail.com>"],"version":"1.0.0","main":"zknotary_verifier.js","types":"zknotary_verifier.d.ts","gitHead":"d59e76bf29e2ec099e6a69ed6837c14f239dfecf","description":"<div align=\"center\">","_id":"zknotary-verifier@1.0.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-ZjpCpUy48XZRKTNRxJGX0v4kIHCL3f2PX801XUSq3qQ0eHi8cwn63MK7/1ibhKDg8k4sp334x5YnTjX6MTcfZA==","shasum":"25df5685846fbb789c75f5fa31fc1729ede57dd8","tarball":"https://registry.npmjs.org/zknotary-verifier/-/zknotary-verifier-1.0.0.tgz","fileCount":5,"unpackedSize":1540535,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3yYhclGgKUn/y8nVT0T27Za0il/HJ21pG8lzLQre9dQIhAPUAIhLRpGs0v4IU6I/Ehg+YLVheYqOBwoeNkLVxvK7h"}]},"_npmUser":{"name":"racampos","email":"racampos@gmail.com"},"directories":{},"maintainers":[{"name":"racampos","email":"racampos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zknotary-verifier_1.0.0_1703783898149_0.22475931756932455"},"_hasShrinkwrap":false},"1.0.1":{"name":"zknotary-verifier","collaborators":["Rafael Campos <racampos@gmail.com>"],"version":"1.0.1","main":"zknotary_verifier.js","types":"zknotary_verifier.d.ts","_id":"zknotary-verifier@1.0.1","gitHead":"94104b600a03a42800e3031b5690bec633bc2d15","description":"## Introduction","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-aV60dMl/Wp530M4wSe0/BfclMlcBieW9AfK4mMkNvEPQXA2+z2TsY+139X/6LXcvbUqlgTxany74ldxUZaFeIw==","shasum":"9977d7ab0b84d1df84a60a155be77bbc80c0d664","tarball":"https://registry.npmjs.org/zknotary-verifier/-/zknotary-verifier-1.0.1.tgz","fileCount":5,"unpackedSize":1724757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCP3P8L3Rw61G7ADp9/OxXCr74/UsVIEKWUt8CXPMvIaAIgWOTT5C7qiRvTUzAWzIciucPwFgx2wpEg9FQ8fyMos8M="}]},"_npmUser":{"name":"racampos","email":"racampos@gmail.com"},"directories":{},"maintainers":[{"name":"racampos","email":"racampos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zknotary-verifier_1.0.1_1714323218823_0.47961345625064933"},"_hasShrinkwrap":false},"1.1.0":{"name":"zknotary-verifier","collaborators":["Rafael Campos <rafa@vixuslabs.com>","Tito Thompson<tito@vixuslabs.com>"],"description":"package for tlsn notary proof verification in wasm","version":"1.1.0","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/vixuslabs/zkNotary.git#main"},"main":"zknotary_verifier.js","types":"zknotary_verifier.d.ts","_id":"zknotary-verifier@1.1.0","gitHead":"59ab88bde408a87ae4503be0f035cf5405ec5af2","bugs":{"url":"https://github.com/vixuslabs/zkNotary/issues"},"homepage":"https://github.com/vixuslabs/zkNotary/tree/main#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-fWw9Zk+G3IfHTtl/2fOxmRNErU2iQq6YpOeUdh6JaVMF2Ge7jSsDUTbqEgdXzDc0NAPH55et+jWKOSJ+5Ykm7w==","shasum":"042e8a217d84bf665464b891cfa6254091b02bc1","tarball":"https://registry.npmjs.org/zknotary-verifier/-/zknotary-verifier-1.1.0.tgz","fileCount":6,"unpackedSize":1735278,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEqbi4k68rHAlFY2Qcs3aU0EFgccT8AlZbm3ltvLFK3YAiB/TODIRqO2usMWCJmrx3ErQleP5PMZMTybx55xYPVlNQ=="}]},"_npmUser":{"name":"0xtito","email":"titothompson@proton.me"},"directories":{},"maintainers":[{"name":"0xtito","email":"titothompson@proton.me"},{"name":"racampos","email":"racampos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zknotary-verifier_1.1.0_1714328424135_0.4515784725806773"},"_hasShrinkwrap":false},"1.1.1":{"name":"zknotary-verifier","collaborators":["Rafael Campos <rafa@vixuslabs.com>","Tito Thompson<tito@vixuslabs.com>"],"description":"package for tlsn notary proof verification in wasm","version":"1.1.1","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/vixuslabs/zkNotary.git#main"},"main":"zknotary_verifier.js","types":"zknotary_verifier.d.ts","_id":"zknotary-verifier@1.1.1","gitHead":"05dd3e163db1f7d51490fee73f489178e20c97f2","bugs":{"url":"https://github.com/vixuslabs/zkNotary/issues"},"homepage":"https://github.com/vixuslabs/zkNotary/tree/main#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-mLqTVnqO5eG7iMw9DHa1JvmFBXLUr3DmwywsJSkLGI1938q5vOBoS75QVPrv5+0mnkVZHLvna70/zq2arCZTkA==","shasum":"b02a655a0ffbe6a84cc86d2a7c51903a3f02e02e","tarball":"https://registry.npmjs.org/zknotary-verifier/-/zknotary-verifier-1.1.1.tgz","fileCount":6,"unpackedSize":1735276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDszbaDNc1mfn1hlnC/FNVAurqAucIbCHHRd0i8D5QMBwIhAOa2ZE40ySEGX0JyPJoN9E4Gbg1vDydBIa0KkPdn1mR6"}]},"_npmUser":{"name":"0xtito","email":"titothompson@proton.me"},"directories":{},"maintainers":[{"name":"0xtito","email":"titothompson@proton.me"},{"name":"racampos","email":"racampos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zknotary-verifier_1.1.1_1714339247785_0.9873834670980783"},"_hasShrinkwrap":false},"1.1.2":{"name":"zknotary-verifier","collaborators":["Rafael Campos <rafa@vixuslabs.com>","Tito Thompson<tito@vixuslabs.com>"],"description":"package for tlsn notary proof verification in wasm","version":"1.1.2","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/vixuslabs/zkNotary.git#main"},"main":"zknotary_verifier.js","types":"zknotary_verifier.d.ts","_id":"zknotary-verifier@1.1.2","gitHead":"05dd3e163db1f7d51490fee73f489178e20c97f2","bugs":{"url":"https://github.com/vixuslabs/zkNotary/issues"},"homepage":"https://github.com/vixuslabs/zkNotary/tree/main#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-SBZwp8fjdbszfTk6YfAXWD8mIw6De87pKSQzf8GYTHtdpEGVPUDrAyo3OQ0HpH0PyVHi9XtW/Fe+Pyz4fCdISg==","shasum":"22d149e149474ea86baafbc0d88c6c798bed7c9c","tarball":"https://registry.npmjs.org/zknotary-verifier/-/zknotary-verifier-1.1.2.tgz","fileCount":6,"unpackedSize":1735286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9eOfw7d9+kU8lmojAAFw1NMPALGJNZgEMuCbtLUvSogIgfp3fWQNptS5O0Gyd+i7q19IaWLaa9BiwlOteEP+wrUo="}]},"_npmUser":{"name":"0xtito","email":"titothompson@proton.me"},"directories":{},"maintainers":[{"name":"0xtito","email":"titothompson@proton.me"},{"name":"racampos","email":"racampos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zknotary-verifier_1.1.2_1714342786473_0.8328903527995559"},"_hasShrinkwrap":false},"1.1.3":{"name":"zknotary-verifier","collaborators":["Rafael Campos <rafa@vixuslabs.com>","Tito Thompson<tito@vixuslabs.com>"],"description":"package for tlsn notary proof verification in wasm","version":"1.1.3","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/vixuslabs/zkNotary.git#main"},"module":"zknotary_verifier.js","types":"zknotary_verifier.d.ts","sideEffects":["./zknotary_verifier.js","./snippets/*"],"_id":"zknotary-verifier@1.1.3","gitHead":"05dd3e163db1f7d51490fee73f489178e20c97f2","bugs":{"url":"https://github.com/vixuslabs/zkNotary/issues"},"homepage":"https://github.com/vixuslabs/zkNotary/tree/main#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-feGZozpkISPiTU63nkwrGJXDoL4zRz+LHDeiZ0VpdIwHJttTaAY/wsBO60nt/923EJuFZ/Jgz3Bbq7ZAUHCDaA==","shasum":"62d6c5b7304ce5d214399bf973e92996e3004d56","tarball":"https://registry.npmjs.org/zknotary-verifier/-/zknotary-verifier-1.1.3.tgz","fileCount":7,"unpackedSize":1735392,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGp91qhJ7sq3mTu6zKJTteiYUONdiWO6fgXh+X5HncFbAiEAyZ05YPt5b8xOEAxIG0EHgcY7r8uQ4PFa+VbnKteVfgQ="}]},"_npmUser":{"name":"0xtito","email":"titothompson@proton.me"},"directories":{},"maintainers":[{"name":"0xtito","email":"titothompson@proton.me"},{"name":"racampos","email":"racampos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zknotary-verifier_1.1.3_1714343632283_0.5267071927912039"},"_hasShrinkwrap":false},"1.1.4":{"name":"zknotary-verifier","collaborators":["Rafael Campos <rafa@vixuslabs.com>","Tito Thompson<tito@vixuslabs.com>"],"description":"package for tlsn notary proof verification in wasm","version":"1.1.4","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/vixuslabs/zkNotary.git#main"},"module":"zknotary_verifier.js","types":"zknotary_verifier.d.ts","sideEffects":["./zknotary_verifier.js","./snippets/*"],"_id":"zknotary-verifier@1.1.4","gitHead":"05dd3e163db1f7d51490fee73f489178e20c97f2","bugs":{"url":"https://github.com/vixuslabs/zkNotary/issues"},"homepage":"https://github.com/vixuslabs/zkNotary/tree/main#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-FTAOsvId/qNOAQQMNqh0c3j30RVAIisio96f0VMujf8lCvg2bbzS+go8s+0eU6m9fpF7XkGB02asUDDVu4NqEg==","shasum":"88f3254c331f7656e5eabc0c20bd8e29a292ad63","tarball":"https://registry.npmjs.org/zknotary-verifier/-/zknotary-verifier-1.1.4.tgz","fileCount":7,"unpackedSize":1735400,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCp4DB9UHZ8PUVwvZc00oQVVpIClbEoRHn7RFVd1rOUSwIhAJpNDDGlMRsCAtuQH7upWfH0duW6P4M5iUZtxNA51Nz8"}]},"_npmUser":{"name":"0xtito","email":"titothompson@proton.me"},"directories":{},"maintainers":[{"name":"0xtito","email":"titothompson@proton.me"},{"name":"racampos","email":"racampos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zknotary-verifier_1.1.4_1714344229743_0.6142861861078777"},"_hasShrinkwrap":false},"1.2.0":{"name":"zknotary-verifier","collaborators":["Rafael Campos <rafa@vixuslabs.com>","Tito Thompson<tito@vixuslabs.com>"],"description":"package for tlsn notary proof verification in wasm","version":"1.2.0","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/vixuslabs/zkNotary.git#main"},"module":"zknotary_verifier.js","types":"zknotary_verifier.d.ts","sideEffects":["./zknotary_verifier.js","./snippets/*"],"_id":"zknotary-verifier@1.2.0","gitHead":"05dd3e163db1f7d51490fee73f489178e20c97f2","bugs":{"url":"https://github.com/vixuslabs/zkNotary/issues"},"homepage":"https://github.com/vixuslabs/zkNotary/tree/main#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-5EQdckomtoncVJN4N5s3NsARWlKCY/2oKu4rXw+S8dOXoppGm5NB9wLMIiqKzzRIboM8lI05bxAv5maZLAxUzQ==","shasum":"89a5cbc6ce00bbbc3456a26aafeec3db6d99770a","tarball":"https://registry.npmjs.org/zknotary-verifier/-/zknotary-verifier-1.2.0.tgz","fileCount":7,"unpackedSize":758514,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCJK7r9CsulzPs2P45WH7QNClj2YCbc7ubL61EeJnm8AIhAOYqEgj3Hb70Og42pkFpJ73LVsmUM1tbnAtQL9Bq9UJG"}]},"_npmUser":{"name":"0xtito","email":"titothompson@proton.me"},"directories":{},"maintainers":[{"name":"0xtito","email":"titothompson@proton.me"},{"name":"racampos","email":"racampos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zknotary-verifier_1.2.0_1714348276248_0.28222548634742184"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-12T17:25:26.228Z","0.1.0":"2023-12-12T17:25:26.715Z","modified":"2024-04-28T23:51:16.723Z","0.1.1":"2023-12-12T22:10:22.153Z","0.1.2":"2023-12-12T22:28:45.940Z","0.1.3":"2023-12-22T14:26:15.288Z","0.1.4":"2023-12-26T23:07:55.933Z","0.1.5":"2023-12-26T23:16:34.765Z","0.1.6":"2023-12-26T23:58:08.393Z","0.1.7":"2023-12-27T00:46:40.553Z","0.1.8":"2023-12-27T00:50:30.487Z","0.1.10":"2023-12-27T14:33:01.971Z","0.1.11":"2023-12-27T20:47:21.181Z","0.2.0":"2023-12-27T20:57:57.560Z","0.2.1":"2023-12-28T15:43:52.384Z","0.2.2":"2023-12-28T15:51:09.912Z","1.0.0":"2023-12-28T17:18:18.425Z","1.0.1":"2024-04-28T16:53:39.082Z","1.1.0":"2024-04-28T18:20:24.338Z","1.1.1":"2024-04-28T21:20:48.011Z","1.1.2":"2024-04-28T22:19:46.709Z","1.1.3":"2024-04-28T22:33:52.610Z","1.1.4":"2024-04-28T22:43:49.988Z","1.2.0":"2024-04-28T23:51:16.542Z"},"maintainers":[{"name":"0xtito","email":"titothompson@proton.me"},{"name":"racampos","email":"racampos@gmail.com"}],"description":"package for tlsn notary proof verification in wasm","readme":"# Verifier\n\n## Introduction\n\nThe Verifier component of zkNotary is a crucial tool for validating the authenticity of data notarized by the Prover. It's a WebAssembly module compiled from Rust, using [wasm-pack](https://rustwasm.github.io/docs/wasm-pack/introduction.html), and is designed for use within JavaScript applications.\n\n## Features\n\n- **WebAssembly Compilation**: The Rust code is compiled into WebAssembly, making it suitable for integration in web environments.\n- **Single Public Function - `verify`**: Exposes a function that takes `proof_json` and `notary_pubkey` as inputs and returns a plain-text notarization of the original interaction with a web server.\n- **Digital Signature Validation**: Validates that the proof was digitally signed by the notary server, ensuring authenticity.\n\n## Prerequisites\n\n- Rust\n- Cargo\n- wasm-pack\n\nNote: This project requires a clang version newer than 16.0.0 to compile ring to wasm. If not, you will run into warning: error: unable to create target: 'No available targets are compatible with triple \"wasm32-unknown-unknown\"'\n\n## File Structure\n\n- `src/lib.rs`: This is the main library file for the Verifier.\n- `src/utils.rs`: This file contains utility functions used by the Verifier.\n- `pkg`: Autogenerated directory where the npm package code lives.\n- `examples/node`: A sample node application that showcases how to use the verifier package. For more information see the sample application's [README](./examples/node/README.md) file.\n\n## Usage\n\n1. Install wasm-pack\n\n```sh\nnpm install -g wasm-pack\n```\n\n2. Optional: For Mac users with a version of clang older than 16.0.0, you can use Homebrew to install `llvm` and then use it to compile the project.\n\n```sh\nbrew install llvm\necho 'export PATH=\"/path/to/your/newly/installed/llvm/bin:$PATH\"' >> ~/.zshrc\nsource ~/.zshrc\n```\n\n3. Build the wasm project\n\n```sh\nwasm-pack build --target nodejs\n```\n\nThis creates a new `pkg` directory with the wasm package ready to publish to npmjs.com.\n\n4. Publish your npm package\n\n```sh\ncd pkg\nnpm publish\n```\n\n## Contributing\n\nContributions are welcome. Please submit a pull request or create an issue to discuss the changes you want to make.\n\n## Acknowledgements\n\nThis project is inspired by and borrows code from the following projects:\n\n- [Proof Viz](https://github.com/tlsnotary/proof_viz)\n- [TLSN](https://github.com/tlsnotary/tlsn)\n\nWe are grateful to the authors of these projects for their work.\n\n## License\n\nApache\n","readmeFilename":"README.md","homepage":"https://github.com/vixuslabs/zkNotary/tree/main#readme","repository":{"type":"git","url":"git+https://github.com/vixuslabs/zkNotary.git#main"},"bugs":{"url":"https://github.com/vixuslabs/zkNotary/issues"},"license":"Apache-2.0"}