1.6.1 • Published 10 months ago

@iden3/js-jsonld-merklization v1.6.1

Weekly downloads
-
License
MIT or Apache-2.0
Repository
github
Last release
10 months ago

JS-JSONLD-MERKLIZATION

@iden3/js-jsonld-merklization is a library for merklizing JSON-LD documents in JavaScript. Merklization is a process that creates a Merkle tree of a JSON-LD document, which allows for efficient verification of data integrity and authenticity.

This library uses jsonld.js to serialize JSON-LD documents into a canonical form, which is then hashed using Poseidon hash. The resulting hashes are combined into a Merkle tree, which can be used to verify the integrity of the original JSON-LD document.

Installation

To use this library, you can install it via npm:

npm install @iden3/js-jsonld-merklization

Alternatively, you can include it in your project via a CDN:

<script src="dist/umd/index.js"></script>

Usage

Here is an example of how to use this library:

import { Merklizer } from '@iden3/js-jsonld-merklization';

const mz = await Merklizer.merklizeJSONLD(multigraphDoc);

const path = await Path.fromDocument(null, multigraphDoc, 'verifiableCredential.birthday');

Contributing

Contributions to this library are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.

License

js-jsonld-merklization is part of the iden3 project copyright 2024 0kims association

This project is licensed under either of

at your option.

1.6.1

10 months ago

1.5.2

11 months ago

1.6.0

10 months ago

1.5.0

12 months ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.0.2

3 years ago

1.1.0

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.1.2

2 years ago

1.0.0-beta.15

3 years ago

1.0.0-beta.16

3 years ago

1.0.0-beta.12

3 years ago

1.0.0-beta.10

3 years ago

1.0.0-beta.9

3 years ago

1.0.0-beta.13

3 years ago

1.0.0-beta.14

3 years ago

1.0.0-beta.8

3 years ago

1.0.0-beta.6

3 years ago

1.0.0-beta.7

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.3

3 years ago

1.0.0-beta.4

3 years ago

1.0.0-beta.1

3 years ago

1.0.0-beta.0

3 years ago