{"_id":"@0xcert/web3-sandbox","_rev":"5-5616a7cb3b7f12e1d16a49fe6459fe37","name":"@0xcert/web3-sandbox","dist-tags":{"latest":"0.0.0-init"},"versions":{"0.0.0-alpha0":{"name":"@0xcert/web3-sandbox","version":"0.0.0-alpha0","description":"Web3 provider sandbox environment","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"rm -Rf ./dist","transpile":"npm run clean; tsc","lint":"tslint 'src/**/*.ts?(x)'","prepare":"npm run transpile","test":"nyc hayspec test --require ts-node/register --match ./src/tests/**/*.test.ts"},"nyc":{"extension":[".ts"],"require":["ts-node/register"],"exclude":["src/tests"]},"author":{"name":"Kristijan Sedlak","url":"Xpepermint"},"license":"MIT","devDependencies":{"@0xcert/web3-dex":"0.0.0-alpha0","@0xcert/web3-dxm":"0.0.0-alpha0","@0xcert/web3-erc20":"0.0.0-alpha0","@0xcert/web3-erc721":"0.0.0-alpha0","@0xcert/web3-proxy":"0.0.0-alpha0","@0xcert/web3-xcert":"0.0.0-alpha0","@0xcert/web3-zxc":"0.0.0-alpha0","@hayspec/cli":"^0.4.21","@hayspec/spec":"^0.4.21","nyc":"^13.0.1","supertest":"^3.3.0","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1"},"_id":"@0xcert/web3-sandbox@0.0.0-alpha0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"dist":{"integrity":"sha512-036FWcEJ7zUK5PVDNhDptmymewcDEHIWttv7o7VmHnHrl9pYOHzycNL9QxkVRhuLdZUWRnx/iUvTcYSsZB85HA==","shasum":"495bf1ac6e8c77378c9caffbf4c8056470bd1632","tarball":"https://registry.npmjs.org/@0xcert/web3-sandbox/-/web3-sandbox-0.0.0-alpha0.tgz","fileCount":42,"unpackedSize":80439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrzY9CRA9TVsSAnZWagAAQvAP/A/l3OKv2f1eDa4NKTA9\nsIsnBUDj+gTV8K1Cyc6QMYI/1aMerrHB+8hzd6t0j1KJ+bsc45weGrrkGxj9\nWPHk0Doy+DP01kvZ6kJsDhd4WB05DMl2phFKGQ8fmhJ01daKDAxMh6GhW8Ev\nuAt5GIn38zfskllEPD1tnvK+IzGk2vRXCIdw181sqzd0qbfGhdIJrLUgcawv\neJc6XoL5VzeNA4pmdUDdP37+yLOPGjzWyhBAh6STuD8iJYMMR0Rq5EuPINIV\n/X5OIaLnypOztrX4U0HKT+GlploD5w+cBo6+FFWKzm8fvd22M5y5lxNOJCt7\n1UAQw8TRDmjIxFhZ4yXw94OA2925StwhG5X4QrYKFKSvqdYa8geerXQPOSg5\nYsTCiOwxxJAlnMev3Rk1bfxaQtCzIXUiOQKJKYIMafVyQHA8vbhFAFOJd+Er\nnOUOkWki2BorWxznSp2/wHtQ3XLosdi4PPw/IINFYxnWm4AWC68ICdpxsglR\noNolinE8RtlcHc28lHDk1OYLS8KM+osoU+2Rdsed8c+jsv8pModWrBmmF/aQ\nrFFUz9kKor1R6P5WyNNcwsI2wUWG7OuyO4Bxvmvc5H+YTKRk9R/TlGvfdqY4\n4t4QFpGSt16Wc/V9zLO9NQKOgQVERQCONh7cmyIvXdzNnmHV4iyMegXuZ3RT\n69IG\r\n=o5Xc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn7KWa98cC1AEwwRpd3ID+ajqL5spKqOTaLHrdPTU4QQIgMgb4L4E0TlCa5qo5++barAy6nizyz7BcbTLqANRT1Ls="}]},"maintainers":[{"name":"leonpanjtar","email":"leon.panjtar@gmail.com"},{"name":"xpepermint","email":"xpepermint@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3-sandbox_0.0.0-alpha0_1538209340798_0.33798759515590326"},"_hasShrinkwrap":false},"0.0.0-alpha1":{"name":"@0xcert/web3-sandbox","version":"0.0.0-alpha1","description":"Web3 provider sandbox environment","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"rm -Rf ./dist","transpile":"npm run clean; tsc","lint":"tslint 'src/**/*.ts?(x)'","prepare":"npm run transpile","test":"nyc hayspec test --require ts-node/register --match ./src/tests/**/*.test.ts"},"nyc":{"extension":[".ts"],"require":["ts-node/register"],"exclude":["src/tests"]},"author":{"name":"Kristijan Sedlak","url":"Xpepermint"},"license":"MIT","devDependencies":{"@hayspec/cli":"^0.4.21","@hayspec/spec":"^0.4.21","ganache-cli":"^6.1.8","nyc":"^13.0.1","supertest":"^3.3.0","ts-node":"^7.0.1","tslint":"^5.11.0","typescript":"^3.1.1","web3":"^1.0.0-beta.36"},"dependencies":{"@0xcert/web3-dex":"0.0.0-alpha0","@0xcert/web3-dxm":"0.0.0-alpha0","@0xcert/web3-erc20":"0.0.0-alpha0","@0xcert/web3-erc721":"0.0.0-alpha0","@0xcert/web3-proxy":"0.0.0-alpha0","@0xcert/web3-xcert":"0.0.0-alpha0","@0xcert/web3-zxc":"0.0.0-alpha0"},"_id":"@0xcert/web3-sandbox@0.0.0-alpha1","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"dist":{"integrity":"sha512-ll/PEn5h6LrNon3rwREJfQx2/V7qmfzUoMBacqkqps4mKeWTi/FZhMqMiYtGPu2IZwptg3X4aAgu8WKEXIeldA==","shasum":"11f17332cddc8b0698e6ccc7d27736dc19371fe2","tarball":"https://registry.npmjs.org/@0xcert/web3-sandbox/-/web3-sandbox-0.0.0-alpha1.tgz","fileCount":42,"unpackedSize":80522,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbsuUWCRA9TVsSAnZWagAA/BoP/AyukMVF7F0qmDzpf/QD\n2Q3EXMc4gAd6nKkB5QRUoH2KcNmVgs8EX3+YpLnSw7Tnna6LIc+rHDxR7Nw6\nhrnNykAAyWi7I3gC68TkOlW2UvlFldKu4zzwFw3zJgIau9DvDXmGkOxr6Iil\n4dNKeKH9+K6flZsBStzkYSjyL4EUQ7IzYIYG9G6mWV9hlYdaAHR/hGSo+Wi7\n+NEwPNSKkPxc9wxn8HwfVrA3i7vV7sZ8I1PrYCOM5sD6od2l6NDyXxNFl2fW\n4qqcnaGpVENioQLGniIRshADQwrbse1kWDhNW2YZXfZpKYG0GByKMyM1L5ff\n3K4tv6V0EnkuQW/noCjACZgu4lbnsTqoY9+e1+aGhx+1u5h3HU5IAvPtJJ4M\nLKnMuszp2/34zk0TDdaQxHeAegxulYQ73oCeXuZJYNViABTLjc39+spjRv0o\n1BJj3tbK9ZgY+B6gklhiK0dGe6Wg3XaUWzrIRPTWjWo5YpVMcS71OpsyP0SQ\njXbjS/9dui+o14q9O7M668+Nv3n8ZQ9KhzOR+Rgtn4iUUPlxSq/qtL1nxBvc\np952eU5RY9a4uJhaiZ2QpqubcZsqg801zafma3GbgMtp0rO0svpuwdCHo0Dp\nUv9IIhfGz8KdFZPeXAopFCav4eULPKNWqdegZtbwr6ObUeaCpRi+yMCeIsua\nfSH7\r\n=CoST\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmjQwvQRjkikrAM1w24ieS++9lIPN/+GAwozk8AV8WEAiAPLuEyQzQZI0LMMgQogx+rBMocbdCxsDPrYCthRyIdcQ=="}]},"maintainers":[{"name":"leonpanjtar","email":"leon.panjtar@gmail.com"},{"name":"xpepermint","email":"xpepermint@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3-sandbox_0.0.0-alpha1_1538450709642_0.3059396161093273"},"_hasShrinkwrap":false},"0.0.0-init":{"name":"@0xcert/web3-sandbox","version":"0.0.0-init","description":"```ts // VERIFICATION EXAMPLE // I share an evidence file that proofs certain JSON paths (e.g. public JSON) // I have an object with just some data. // The function recreates a recipe for this partial data object and assignes is to the evidence file. // A","license":"MIT","_id":"@0xcert/web3-sandbox@0.0.0-init","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"dist":{"integrity":"sha512-Wm/9YmmFuBKDU7sL6XokuYjTOgkhCDLfFUIoWtGRKZn1M1Up1oghmrz6EAv+kSM0psXA0TiNzO3oCvc89pdZWA==","shasum":"764aba0523586e078af363bd1522d5605c8fea12","tarball":"https://registry.npmjs.org/@0xcert/web3-sandbox/-/web3-sandbox-0.0.0-init.tgz","fileCount":16,"unpackedSize":27292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9GB9CRA9TVsSAnZWagAA9PEP/01spdKhOB//CWesFEku\nkMsEeVqpaw4fdksfz9jJcfNOZj98izLZGkfbOcnkupdgTpgTHLfPQzrSz1TI\nINDVNU1MC4dWCh9H84NBwHZCa4JFWSpNSo4i29MHimcIhU/hCnF7B0BxcsEN\nD9VRqF4/Y1An8cYEQVuzvglSMjVr9fj/NGcjS3icZZR89l5Y7ER6lxYNDMZv\nd6jEDYGfr6r2M15D61beETkU/JZPAOv2DXGQjFxXlULdk8SRn6YApPlnDt39\n7n5JA2SoVi8tX2az1P3Iaau613Qhpb6ABeOVVQLusXef8/vePaIR1lLpthU1\nnE8YF0mleRb97yRoX2gWrHfY5WuKz6oC4uDa6QNnqMliP+bhwrAY2Ou1V5a4\nKTCxXksL364nDHP0ujrtq0hYUfGHZZQvTx2SdhOwAh2szgJHx/gjBeOP2VGU\nnWMIWcSHB9pHidLRy4ZzipSHwg5lkDmA/4DWGu1hCsqaw9Sz6BKf01gKZqPt\n3AuwxH4Qc52/bwPLK+yC1IfH4G10CxdhtoFMburEQDeYv1sAXnQAYVDGkXT/\nmxHy4FjXCkM5i9C9k0zkUhxVMRJJuuaegNU+adgzQj8ttPNav4N9ScRQUp//\n0SOlnWoXRr6fQ+7oz21TfgTk7muhqwCWuaSlTcWFSSvwN36PEWPEOMUpDu9j\n7WNS\r\n=8Yiu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYOzsrgHSbGSJqG9Vwc+/CUfRtuqmq3x0N4hybr8Tc3AiBJVVqwXf+j7uhAQ6TaK9v73l0YQNuIT+ZUJgBbnG4Byw=="}]},"maintainers":[{"name":"leonpanjtar","email":"leon.panjtar@gmail.com"},{"name":"xpepermint","email":"xpepermint@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3-sandbox_0.0.0-init_1542742140697_0.6851977331964505"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-29T08:22:20.741Z","0.0.0-alpha0":"2018-09-29T08:22:21.034Z","modified":"2022-04-04T10:28:52.049Z","0.0.0-alpha1":"2018-10-02T03:25:09.883Z","0.0.0-init":"2018-11-20T19:29:00.869Z"},"maintainers":[{"email":"vengust.tadej@gmail.com","name":"moman"},{"email":"xpepermint@gmail.com","name":"xpepermint"}],"description":"```ts // VERIFICATION EXAMPLE // I share an evidence file that proofs certain JSON paths (e.g. public JSON) // I have an object with just some data. // The function recreates a recipe for this partial data object and assignes is to the evidence file. // A","license":"MIT","readme":"```ts\n// VERIFICATION EXAMPLE\n// I share an evidence file that proofs certain JSON paths (e.g. public JSON)\n// I have an object with just some data.\n// The function recreates a recipe for this partial data object and assignes is to the evidence file.\n// At this stage we modified evidence file with data we know.\n// We then calculate the imprint which must match the one stored in the token.\n// NOTE: Custom fields always pass.\n\n// WORDING\n// evidence -> consists of proofs -> forms an imprint\n// data object -> consists of properties (props)\n\n// USAGE\n// Define arbitrary data object.\nconst data = { ... };\n// Define certificate with JSON schema definition.\nconst cert = new Cert({ schema: { ...} });\n// Notarize data object (returns all proofs for whole data object).\nconst proofs = await cert.notarize(data);\n// Expose selected data keys (returns proofs and exposed values from which an imprint can be calculated).\nconst proofs = await cert.disclose(exampleData, [ ...paths... ]);\n// Verify data object against proofs generated with function `disclose` (if object is valid, an imprint is the right root hash).\nconst imprint = await cert.calculate(data, proofs);\n// Generate root hash from complete data object.\nconst imprint = await cert.imprint(data);\n```\n","readmeFilename":"README.md"}