Blakechain is a simple hash-chain data structure based on the BLAKE2b hash function.
Includes:
Blakechain
implementation, which chains together Node
objectsVerifier
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.
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 .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
|
Groups | Applications | Files |
Groups |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
Cryptography | Encrypting, decrypting and hashing data | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
src (3 files) | ||||
tests (3 files) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit-autoload.php | Aux. | Auxiliary script | ||
phpunit.xml.dist | Data | Auxiliary data | ||
psalm.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description |
---|---|---|
Blakechain.php | Class | Class source |
Node.php | Class | Class source |
Verifier.php | Class | Class source |
Files | / | tests |
File | Role | Description |
---|---|---|
BlakechainTest.php | Class | Class source |
NodeTest.php | Class | Class source |
VerifierTest.php | Class | Class source |
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.
|