HashChainStorage

\interface HashChainStorage Interface represents entity that provides access to storage of hash chain blocks

Members

Functions

find
Block find(bool delegate(Block) @(safe) predicate)

Finds block that satisfies given predicate @param predicate - predicate for block \return block if search was successfull, null - if such block doesn't exist

getHashes
Fingerprint[] getHashes()

Return list of all hashes in storage \return list of hashes

read
Block read(Fingerprint fingerprint)

Reads block with given fingerprint from storage @param fingerprint - fingerprint of block to read \return block with given fingerprint, null - if such block doesn't exist

write
void write(const(Block) block)

Writes given block to storage @param block - block to write

Meta