Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
@iden3/js-jsonld-merklization
Advanced tools
@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.
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>
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');
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.
js-jsonld-merklization is part of the iden3 project copyright 2024 0kims association
This project is licensed under either of
at your option.
FAQs
json ld merklization library
The npm package @iden3/js-jsonld-merklization receives a total of 1,810 weekly downloads. As such, @iden3/js-jsonld-merklization popularity was classified as popular.
We found that @iden3/js-jsonld-merklization demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.