package octez-protocol-alpha-libs

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

Forges a correct header following the policy. The header can then be modified and applied with apply.

val set_seed_nonce_hash : ?proof_of_work_threshold:int64 -> Tezos_protocol_alpha.Protocol.Nonce_hash.t option -> header -> (header, Tezos_base.TzPervasives.tztrace) result Lwt.t

Sets uniquely seed_nonce_hash of a header

val set_baker : Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash -> ?consensus_key:Tezos_base.TzPervasives.Signature.public_key_hash -> header -> header

Sets the baker that will sign the header to an arbitrary pkh

val sign_header : header -> Tezos_protocol_alpha.Protocol.Alpha_context.Block_header.block_header Tezos_base.TzPervasives.tzresult Lwt.t

Signs the header with the key of the baker configured in the header. The header can no longer be modified, only applied.

OCaml

Innovation. Community. Security.