Download the PHP package mohamedahmed01/simple-merkele without Composer
On this page you can find all versions of the php package mohamedahmed01/simple-merkele. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mohamedahmed01/simple-merkele
More information about mohamedahmed01/simple-merkele
Files in mohamedahmed01/simple-merkele
Download mohamedahmed01/simple-merkele
More information about mohamedahmed01/simple-merkele
Files in mohamedahmed01/simple-merkele
Vendor mohamedahmed01
Package simple-merkele
Short Description package to generate and verify hashs using merkle tree
License MIT
Homepage https://github.com/mohamedahmed01/simple-merkele
Package simple-merkele
Short Description package to generate and verify hashs using merkle tree
License MIT
Homepage https://github.com/mohamedahmed01/simple-merkele
Keywords mohamedahmed01simple-merkele
Please rate this library. Is it a good library?
Informations about the package simple-merkele
Merkle Tree Algorithm Implementation using PHP
This is a very simple implemenation of merkle tree in which you can use multiple hashes to create a merkele tree and compress it to a single hash .
Installation
You can install the package via composer:
Usage
Methods :
Method | Description |
---|---|
SimpleMerkele($mode,$algo) | Creates new instance with the specified configuration |
addHash($hash) | add hash to the internal inventory not that once added cannot be removed |
calculateTree() | create the tree and the top node i.e hash |
resetTree() | reset the internal memories to be able to add new hashes and create new tree |
Configuration :
Flag/Param | Description |
---|---|
SimpleMerkele::ALLOW_ODD_ARRAYS | Allow odd length trees but adjusting the pairing internally |
SimpleMerkele::DIS_ALLOW_ODD_ARRAYS | throws an exceptions on odd length tree |
$algo | accept standard algo type i.e "md5","sha256" refer to HashValidation class for full list |
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of simple-merkele with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
The package mohamedahmed01/simple-merkele contains the following files
Loading the files please wait ....