{"_id":"@0xcert/web3-transaction-queue","_rev":"3-bae9f7ea28d57ab8e41a668d6d56e4e0","name":"@0xcert/web3-transaction-queue","dist-tags":{"latest":"0.0.0-init"},"versions":{"0.0.0-init":{"name":"@0xcert/web3-transaction-queue","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-transaction-queue@0.0.0-init","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"dist":{"integrity":"sha512-6EVILS9dQwPHjxsYPVxvaN7K/ISc+NVNNB/BA524NbzSmyok1/K437U/iFVAwG35jTH3Ut7khihl8fk0k2mcVg==","shasum":"70bf5f659b527babe33d8cbb943738901c4639f6","tarball":"https://registry.npmjs.org/@0xcert/web3-transaction-queue/-/web3-transaction-queue-0.0.0-init.tgz","fileCount":16,"unpackedSize":27302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9GCKCRA9TVsSAnZWagAAfCcP/1xObKnafa3831KA+6Ct\nNgvNItXGCcnVNpecj+h0Z3ultRh6NytnaAMdvl1vENTGQ7lC7ZA4jH6xI9EI\nndevf43dsY+QZtM1heDTIs9t1OhwrwK0v2eg5FG2e4JIi3o1fYSXDOu6I7K9\nKNwXW7dEG4+nHNiRI4RSBt8cA1S4HvPHPe9RLoVdcpHRPvCdhEwM9LyNvWa/\n5S0sIusj71zT5Qmn4RFe1rYbM0EJijZ1uXcPKmukv2hwj0uQIswOHph2nPkB\nLE5+JhU8NKIydE1PO/T0cXBB+S31quM02S3fg9kZXEDS+I+NQErbgrD77d2m\nZUXLvVCoQ9bK/xU7OUwtmSxhCOl5o8CMSWVs5HKEmQs8IVqR6fyiyG1jbOOm\nnRdkdg1Eecoh2allWCadrD5T4gUEN1dAvZaQbDxy+ecghFZj7WhvqhIf2Ecw\ngNJqhZvZ6p7CJDDWPflRBSmKFsQM2f+7NrHEGb4SSpZfgdaSe36cYmqZVX3J\nj1utJjmSX/ycoz1T7yYgA4Rup9bpv4EOnL4k0weVSaL+nLq4stE8Cr3ROXB5\nSCyVjmzlEt+8z7fxRKSIfGpmdR0/TD19Wb/8N1GU4UzcrcfNxa9+0L/CvSG9\n2RETfuzIWA/WRyf9KBRlw+TawlCF1dUWXXR7JxdfsioFJ3fnKKLBhuGoB8/L\nsJaz\r\n=1EQE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJ677EfJ0WVlbhF5mI1hiIRzsXWJJsiIGT7ntDnskFWAiAfAzJGf2Y6M5WbpyBY3duqpez/d/cueVbTBzUGr9qNhw=="}]},"maintainers":[{"name":"leonpanjtar","email":"leon.panjtar@gmail.com"},{"name":"xpepermint","email":"xpepermint@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3-transaction-queue_0.0.0-init_1542742154191_0.21149382810314865"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-20T19:29:14.143Z","0.0.0-init":"2018-11-20T19:29:14.294Z","modified":"2022-04-04T10:28:52.204Z"},"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"}