Crate ic_btc_validation

Source

Enums§

ValidateHeaderError
An error thrown when trying to validate a header.

Traits§

HeaderStore

Functions§

is_beyond_last_checkpoint
Checks if block height is higher than the last checkpoint height. By beeing beyond the last checkpoint we are sure that we store the correct chain up to the height of the last checkpoint.
validate_header
Validates a header. If a failure occurs, a ValidateHeaderError will be returned.