Recomputes the chain from the genesis hash. Returns {ok: true}, or {ok: false, index} for the first entry that is malformed, does not continue the chain (prevHash), or whose hash is not the hash of its event exactly as stored. Never throws.
{ok: true}
{ok: false, index}
prevHash
hash
Recomputes the chain from the genesis hash. Returns
{ok: true}, or{ok: false, index}for the first entry that is malformed, does not continue the chain (prevHash), or whosehashis not the hash of its event exactly as stored. Never throws.