Pos.PoSAbstraction for common sortition and verification operations in proof of stake protocols.
val sortition : 'a Simulator.Block.t -> int -> int list -> int listPerform stake-based sortition, returning a list with the ids of the selected nodes.
val in_committee : int -> 'a Simulator.Block.t -> int -> int list -> credential optionCheck if a given node was selected by sortition to be part of the committee.
val is_proposer : int -> 'a Simulator.Block.t -> int -> int list -> credential optionCheck if a given node was selected by sortition to be part of the committee.
val valid_proposer : int -> 'a Simulator.Block.t -> int -> int list -> credential -> boolCheck if the given credentials belong to a valid proposer.
val valid_committee_member : int -> 'a Simulator.Block.t -> int -> int list -> credential -> boolCheck if the given credentials belong to a valid committee member.
val proposer_priority : int -> 'a Simulator.Block.t -> int -> int list -> credential -> intObtain the priority associated with a node that was selected to propose a block.