ForkVerify extension
Fork-aware verification. A fork's verify requires the parent
ledger's verify() to pass.
How it works
The verification steps are:
- Parent ledger verification: the parent must be intact. A fork from a corrupt ledger is a fork from a lie.
- Fork chain verification: the fork's own chain (from
ForkRecord.genesisHashonward) must be intact. - Genesis binding verification: the
ForkRecord.parentHeadHashmust match the parent's hash atdivergedAt. This is what makes the fork a fork — a fork record whoseparentHeadHashdoes not match the parent's actual hash is either stale or forged.
See also:
- ForkHandle — the handle this extension verifies.
- ForkIntegrityException — what a failed verification throws.
- on
Methods
-
verify(
) → Future< void> -
Available on ForkHandle, provided by the ForkVerify extension
Verifies the fork: parent intact, fork chain intact, genesis binding intact.