package tezos-protocol-012-Psithaca

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Checks if the header that would be built from the given components is valid for the given difficulty. The signature is not passed as it is does not impact the proof-of-work stamp. The stamp is checked on the hash of a block header whose signature has been zeroed-out.

val check_hash : Tezos_crypto.Block_hash.t -> int64 -> bool
val check_header_proof_of_work_stamp : shell_header -> contents -> int64 -> bool
val check_proof_of_work_stamp : proof_of_work_threshold:int64 -> block_header -> (unit, Tezos_protocol_environment_012_Psithaca__Environment.Error_monad.error Tezos_protocol_environment_012_Psithaca__Environment.Error_monad.trace) result
OCaml

Innovation. Community. Security.