Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iden3/js-jsonld-merklization

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iden3/js-jsonld-merklization

json ld merklization library

  • 1.0.0-beta.15
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
decreased by-43%
Maintainers
4
Weekly downloads
 
Created
Source

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

This library is licensed under the AGPL-3.0 License. See the LICENSE file for details.

FAQs

Package last updated on 29 Jun 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc