Current collected state Current
Observed since 20 Oct, 22:45 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xcert/certification
Ethereum certification for 0xcert protocol.
// 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.
// At this stage we modified evidence file with data we know.
// We then calculate the imprint which must match the one stored in the token.
// NOTE: Custom fields always pass.
// WORDING
// evidence -> consists of proofs -> forms an imprint
// data object -> consists of properties (props)
// USAGE
// Define arbitrary data object.
const data = { ... };
// Define certificate with JSON schema definition.
const cert = new Cert({ schema: { ...} });
// Notarize data object (returns all proofs for whole data object).
const proofs = await cert.notarize(data);
// Expose selected data keys (returns proofs and exposed values from which an imprint can be calculated).
const proofs = await cert.disclose(exampleData, [ ...paths... ]);
// Verify data object against proofs generated with function `disclose` (if object is valid, an imprint is the right root hash).
const imprint = await cert.calculate(data, proofs);
// Generate root hash from complete data object.
const imprint = await cert.imprint(data);
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"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=="
}
]
}Observed since 20 Oct, 22:45 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:3ed2c25bcdda8bbc2b9f86e47b20aa6d952452e5460da3bec2e87440a4e196b2