{"repo":"rebaze/integrity","free":true,"listed":false,"github":"https://github.com/rebaze/integrity","clone":"git clone https://github.com/rebaze/integrity.git","description":"Java library providing Merkle DAG structures","language":"Java","stars":19,"topics":["java-library","dag","bitcoin","blockchain","java"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"News What is this? A small Java library for creating Merkle Trees (https://en.m.wikipedia.org/wiki/Merkle tree) to be used in blockchain-like technologies. - Composite hash- tree based java library (DAG) - OSGi compatible - Embeddable - Low footprint What is this good for - Blockchain and Hyperledger Technologies - Indexing arbitrary (nested) data based on hashes and metadata (called selectors and tags here) How do i use it? The most up-to-date code that actually works can be found in this projects test folder. But it is usually helpful to have a first glance at the api and how it can be used. Initializing the TreeSession instance This creates the main entry for anything in this library. It is called a \"Session\" because it encapsulates things you want to have consistent when creating and using the Hash-Trees like hash algorithm used, kind of TreeBuilder (currently in-memory only), and potentially shared instances such as MessageDigest. An instance can be stored (when using the DefaultTreeSessionFactory) as private final static field in a class). Lets create a hash tree This creates the probably smalles tree possible without any meta-data attached to it. The final \"seal()\" method on TreeBuilder actually creates hashes of all sub-elements (hence tree) and returns the composite Tree (value object, immutable). This Tree can be shared, stored and searched (using IndexTree, see below, for example). That first tree basically only gives you the (by default SHA-1) hash of \"anydata\". N","default_branch":null,"files":null,"tree":[],"storefront":"/r/rebaze","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rebaze/integrity/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}