paragonie/blakechain
Hash chain using BLAKE2b
Maintainers
v1.1.2
2024-05-08 17:34 UTC
Requires
- php: ^7|^8
- paragonie/constant_time_encoding: ^2|^3
- paragonie/sodium_compat: ^1.21|^2
Requires (Dev)
- phpunit/phpunit: ^5|^6|^7|^8|^9
- vimeo/psalm: ^3|^4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 8f78234c926c8a317d91d8627558a0f86c337a36
- Paragon Initiative Enterprises <info.woop@paragonie.com>
cryptographyhashblockchainphp 7hash-chainBLAKE2hash chainappend-only
README
👁 Build Status
👁 Static Analysis
👁 Latest Stable Version
👁 Latest Unstable Version
👁 License
👁 Downloads
Blakechain is a simple hash-chain data structure based on the BLAKE2b hash function.
Includes:
- The
Blakechainimplementation, which chains togetherNodeobjects - A runtime
Verifierclass 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]
);
