package octez-protocol-alpha-libs

  1. Overview
  2. Docs
Octez protocol alpha libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-protocol-alpha-libs.baking/Tezos_baking_alpha/Baking_pow/index.html

Module Tezos_baking_alpha.Baking_powSource

Sourceval empty_proof_of_work_nonce : Tezos_base.TzPervasives.Bytes.t

A null proof-of-work nonce. This should only be used to nonsensical blocks of the correct size and shape.

Sourceval mine : proof_of_work_threshold:int64 -> Tezos_base.TzPervasives.Block_header.shell_header -> (Tezos_base.TzPervasives.Bytes.t -> Tezos_protocol_alpha.Protocol.Alpha_context.Block_header.contents) -> Tezos_protocol_alpha.Protocol.Alpha_context.Block_header.contents Tezos_base.TzPervasives.tzresult Lwt.t

mine ~proof_of_work_threshold chain block header builder returns a block with a valid proof-of-work nonce. The function builder, provided by the caller, is used to make the block. All the internal logic of generating nonces and checking for the proof-of-work threshold is handled by mine.

OCaml

Innovation. Community. Security.