Catalog npm
PACKAGE EXPLORERView in registry

@0xcert/web3-sandbox

npm

```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

Versions collected3
Direct dependencies0From release 0.0.0-init
Last observed20 Oct, 22:50 UTC

README

Current package documentation
// 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);

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 3

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.0-initRegistry latest20 Nov 20180
0.0.0-alpha12 Oct 201816
0.0.0-alpha029 Sept 201814

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:50 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f05f0050d7c2375bd429b0d5f3a3e7a518aa9daffc4419e0ca4c2b326c1b4c10