{"_id":"@0xcert/certification","_rev":"5-840bb8be51da2363a0b2245b8b8268c0","name":"@0xcert/certification","dist-tags":{"latest":"0.0.0-alpha1"},"versions":{"0.0.0-init":{"name":"@0xcert/certification","version":"0.0.0-init","description":"Ethereum certification for 0xcert protocol.","license":"MIT","_id":"@0xcert/certification@0.0.0-init","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"dist":{"integrity":"sha512-4z4qjF5x64c5Rd/jvXOmrCw31yAJXcjPxe4T54i437A/Hl/f8AvtzUlhjVLuYG+gXJ5D/InQ+iNz24oaaivYlg==","shasum":"a923c4859f5acee3eaba24b98884eaf80c7845ce","tarball":"https://registry.npmjs.org/@0xcert/certification/-/certification-0.0.0-init.tgz","fileCount":16,"unpackedSize":27336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9F/LCRA9TVsSAnZWagAA+qAQAIXCcZ9pi3ficzSyAc4O\ntl/j17+8VBuyTIQRzHXC0f0nJPE1Q6V/qS0cQ0zbhZrZOkJTLtL0vOwoqeEx\nni7itzpWtX6ADJNqfddYrlWLM9DTH9ZGw7bM49rSpeiD7po6qcAMyTQBfa+8\nyK4Vex7D+mpUvKmvyp4ScLOolYgJ5ouXLgspeudcoMvscJhNPakr2/x8ePzw\n4BaQrb/on+t8OCyeF/swbXTFyLLAiub3FaJpCQaZDse41XPs891VrNWahm25\nmZT0WMOQwg93A9po7UDMmIXaO+5PoZJol9946vbmvGYjDhSHkCqzOgNxUM+k\nI3WImng9+DrbDrJyAKvR/99QFutJBrhI4TFg2qea6z4DlSCTul6tPcJ2aFDl\nD5pjCGch61J5B6ESIV9nks0RqP9gH2JbEoNViYFDPgKtleFdDMxjUOcBxN0o\nBixHJ8H3CsHWMWwu8QTpVZL5s+gVWt48j5VEkVHj770I9lbIxIDn/vZCPkG7\ni1vdWZegWk1ConW+np2RZDrKS6suimG7jHsvLXR3MnNqURmnZWOjDebIHhq2\nuGMJwNFzWGdRlu15BwB2GLg4XPSqmG/ds5xHhWwqd5PPVDyHm1G1J+mIQXF+\nNYXZGjVOrbb/DncdkRDLheUcRmX6s37J/XMzR5PEOMFR0LyotsvtqXQFOiwo\nE6lW\r\n=NcpG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8m0DeLQxOb7N4fHj1zKbl7iuU3S4CcS5h3z4ljIxobAiAXLIfuhncu1U/vL4Q678Eb4uTgsJdKik4/rwvmoB9/iQ=="}]},"maintainers":[{"name":"leonpanjtar","email":"leon.panjtar@gmail.com"},{"name":"xpepermint","email":"xpepermint@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/certification_0.0.0-init_1542741962917_0.41016692447853353"},"_hasShrinkwrap":false},"0.0.0-alpha0":{"name":"@0xcert/certification","version":"0.0.0-alpha0","description":"Ethereum certification for 0xcert protocol.","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"npx tsc","test":"npx hayspec test"},"hayspec":{"require":["ts-node/register"],"match":["./src/tests/**/*.test.ts"]},"license":"MIT","devDependencies":{"@hayspec/cli":"^0.7.6","@hayspec/spec":"^0.7.6","ts-node":"^7.0.1","typescript":"^3.1.1"},"dependencies":{"@0xcert/crypto":"0.0.0-alpha0","@0xcert/merkle":"0.0.0-alpha0"},"_id":"@0xcert/certification@0.0.0-alpha0","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"dist":{"integrity":"sha512-Gc3G9yvhRrA0PdHmdOMh/Lhx3N/02ea5xn8SPE7ucVug2zz8iGIaLg1CMvJ2HEH+6rXxBrWhD20oI1VBogB+aQ==","shasum":"a46e90bd6f56ef92b7cf55305cb95b057903cef9","tarball":"https://registry.npmjs.org/@0xcert/certification/-/certification-0.0.0-alpha0.tgz","fileCount":103,"unpackedSize":169271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9GDCCRA9TVsSAnZWagAAUeAP/0gu+9T1STbK81kxfinn\nN2BhTVVkfEMR8wbqNZcESGr2wJiclMJnGZcIkmBkCKZihxOPSVIUc5UqiqWR\nNVveyPH7NxvWv4fw5trc1Tzls0frU4kcIzxGlJjWo4+NJ8BjhNlwjxY0wDoR\n00QQfOPP7/7pgVsGzHggRRq2LTOp5JMoSW1+UG+79aMru2jaSJ/SB8ql+zdQ\nhV428BtYMtVwKCBXiJ1JcvvjcDxMMHWUpG4NTTBcFLR7PqLii48YC/H3WLkQ\nxmpH9100M9uCfx0XDgHgzFGP9k+avzbFs64gRjdrHDbRfhOHLaDPDmalp81k\nX48m/C7xMPQBf51RGlG9ZuvXH3yWxkqBhY8X0qrd6t/1rlZGpm0DMZdMKSs0\n1HU66f2s4hEHaQfuRAMzYZwwmpk8pm2zNQO1bupaI+gjY7c/XoW5T1/4OfOv\niGdzmqn1HxFPhrik+p2YP/AVKlI1JSOSDnHjU5MEnbCTuDwOn1kBuheXZEoK\nIBXeFO8B/rwKgrHffAd70p0R/5p9svrigwmVI+6Ed7hvLFPv6QMUWwD5scVu\nJGIdGVmHVYhIn59BaYBQwU45ab4b8eHSAzBItEwv8Nj0T7YRCny4eGc8eivW\n39FUua2SfvUFvtUfvFjzB3bxpZRNXYGJyas3Os/hbeq/8CykTj+EGffQKqMc\n0atc\r\n=vPMj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9/mNVIyo1Ve3KRZBwGDyyNdn6MWc54UaqbGP9TjM4rQIgV0kwoXqhyZj6KJ+tW2jiWhGqab0Zmipf6RYuPM0R2tc="}]},"maintainers":[{"name":"leonpanjtar","email":"leon.panjtar@gmail.com"},{"name":"xpepermint","email":"xpepermint@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/certification_0.0.0-alpha0_1542742210214_0.3181315633281898"},"_hasShrinkwrap":false},"0.0.0-alpha1":{"name":"@0xcert/certification","version":"0.0.0-alpha1","description":"Ethereum certification for 0xcert protocol.","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"npx tsc","test":"npx hayspec test"},"hayspec":{"require":["ts-node/register"],"match":["./src/tests/**/*.test.ts"]},"license":"MIT","devDependencies":{"@hayspec/cli":"^0.7.6","@hayspec/spec":"^0.7.6","ts-node":"^7.0.1","typescript":"^3.1.1"},"dependencies":{"@0xcert/crypto":"0.0.0-alpha1","@0xcert/merkle":"0.0.0-alpha1"},"_id":"@0xcert/certification@0.0.0-alpha1","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"dist":{"integrity":"sha512-59hQo4sJljStkffGLj7CHET1x49OE8/+YEj2Ou42KnvRmCI6EFf0B+ZDTbuCfd5KeZtwEuUFlWNLC9mvbS+Jlw==","shasum":"3e64396fae2ec1997b12dcafd9ab425781e7689e","tarball":"https://registry.npmjs.org/@0xcert/certification/-/certification-0.0.0-alpha1.tgz","fileCount":48,"unpackedSize":80115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9f3TCRA9TVsSAnZWagAAHZ8P/0YxPPvZ9yFcIc6Gc0AX\nUBsg/q5EH6WWh+sT2lc/WpktzCPOw09wwyuff5Mgf7rc/reM35Sh9/yRsCO0\n3R/LKuonSp2m34VFw44/YsLH3uCZJf68Ipags+UVEta/jP02pgPLBMZodR0V\ntYvmvGvomDi1irL28uiDlVU1vUQNSrlseiih0Rn3YP4BUuUA9EWIhfchR/QL\nZwnWHlfKkaVB32Um67ANX8KIQ7uGSanjEGuhdTwRv8ppdvH5u6aJ4qJbzjkN\nH1LI1Wae7zCS7pZJuD3LgwRQLVgHRTgyzU8JL4/MmSkYEaYAksP90m0UTK3c\naLpVaEemE8921DrC4WacD6Rt/ImBp8JnvupFURyE7QsiedfOLErPEdpCmGrE\n5NbbesFgCafJmbk7t1WzQ5uFrLoMmapUKVGTL3e5WEVfamHRxhIwq5dJyQs0\nZHwHKVvdhrokPh1dCYK8UfjZbHUnhjT2ENDbGcC3aT+jmj6KsA6LnzVMrbAE\nlu4kvKfX02ifVGjyP8ondeS+fL2gGYaxDytLJzsggJCgMwN25A4q+EJ4TO76\nkYPdYCwk685PBz3fSjfLg06Tfv6lPOFCcrdcI4v6QvRCBbcZtGmTLjUGYPNH\nwqM7vIRFWYpqcHCiXOo0i/4gsBf2OQJRE0o1iJLLL3q7i8oLVi2G2Lq9frsC\ntWAz\r\n=xsS1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFJ11BdCH243flp3eXkGgqPLN5Z30YnUuIIPy9yzwl5gIhAKF1wg++LM5Z6MYIZVmkH+FLa5DehVuR/G70+11mbwpC"}]},"maintainers":[{"name":"leonpanjtar","email":"leon.panjtar@gmail.com"},{"name":"xpepermint","email":"xpepermint@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/certification_0.0.0-alpha1_1542847954831_0.19770127152506545"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-20T19:26:02.853Z","0.0.0-init":"2018-11-20T19:26:03.079Z","modified":"2022-04-04T10:28:09.203Z","0.0.0-alpha0":"2018-11-20T19:30:10.349Z","0.0.0-alpha1":"2018-11-22T00:52:34.997Z"},"maintainers":[{"email":"vengust.tadej@gmail.com","name":"moman"},{"email":"xpepermint@gmail.com","name":"xpepermint"}],"description":"Ethereum certification for 0xcert protocol.","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"}