PHP Classes
elePHPant
Icontem

PHP Blake Chain: Create and verify chained blocks of hashed data

Recommend this page to a friend!

  Author Author  
Name: Scott Arciszewski <contact>
Classes: 21 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 16x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz  
This package can be used to create and verify chained blocks of hashed data.

It uses the BLAKE2b approach to create a chain of blocks of data so the hash of a block of data contains the block data itself and a hash of the previous block in the chain.

The package can also verify the integrity of the chain but checking the hashes of all blocks that are linked in the chain.

Details

Blakechain

Build Status Latest Stable Version Latest Unstable Version License

Blakechain is a simple hash-chain data structure based on the BLAKE2b hash function.

Includes:

  • The Blakechain implementation, which chains together Node objects
  • A runtime Verifier class that validates the self-consistency of an entire chain (or a subset of an entire chain)

Blakechain is not a blockchain. You probably don't need a blockchain.

Blakechain provides the data structure used in Chronicle.

How Blakechain Works

The hash of each message is a keyed BLAKE2b hash, where the key of this message is the hash of the previous message.

Recursively:

$hash[$n] = sodium_crypto_generichash(
    $data[$n],
    $hash[$n - 1]
);

  Classes of Scott Arciszewski  >  PHP Blake Chain  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  

 

Name: PHP Blake Chain
Base name: blakechain
Description: Create and verify chained blocks of hashed data
Version: -
PHP version: 5
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Cryptography Encrypting, decrypting and hashing data View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagesrc (3 files)
Files folder imagetests (3 files)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit-autoload.php Aux. Auxiliary script
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file psalm.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file Blakechain.php Class Class source
  Accessible without login Plain text file Node.php Class Class source
  Accessible without login Plain text file Verifier.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file BlakechainTest.php Class Class source
  Accessible without login Plain text file NodeTest.php Class Class source
  Accessible without login Plain text file VerifierTest.php Class Class source

Download Download all files: blakechain.tar.gz blakechain.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.