package octez-protocol-alpha-libs

  1. Overview
  2. Docs
Octez protocol alpha libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-protocol-alpha-libs.test-helpers/Tezos_alpha_test_helpers/Slashing_helpers/Misbehaviour_repr/index.html

Module Slashing_helpers.Misbehaviour_reprSource

Helpers related to Protocol.Misbehaviour_repr.

Sourceval pp : Format.formatter -> Tezos_protocol_alpha.Protocol.Misbehaviour_repr.t -> unit
Sourceval from_duplicate_operation : 'kind Tezos_protocol_alpha.Protocol.Alpha_context.Kind.consensus Tezos_protocol_alpha.Protocol.Alpha_context.operation -> Tezos_protocol_alpha.Protocol.Misbehaviour_repr.t

Builds a misbehaviour object from either of the duplicate (pre)attestations that constitute a double (pre)attestating event.

Sourceval check_from_duplicate_operation : loc:string -> Tezos_raw_protocol_alpha.Misbehaviour_repr.t -> 'kind Tezos_protocol_alpha.Protocol.Alpha_context.Kind.consensus Tezos_protocol_alpha.Protocol.Alpha_context.operation -> unit Tezos_base.TzPervasives.tzresult Lwt.t

check_from_duplicate_operation ~loc misbehaviour duplicate_op asserts that misbehaviour correctly describes a double signing event involving duplicate_op.

Sourceval from_duplicate_block : Block.t -> Tezos_protocol_alpha.Protocol.Misbehaviour_repr.t Tezos_base.TzPervasives.tzresult

Builds a misbehaviour object from either of the duplicate blocks that constitute a double baking event.

OCaml

Innovation. Community. Security.