Crate jam_types

Source
Expand description

JAM types used within the PVM instances (service code and authorizer code).

Macros§

Structs§

  • The result and surrounding context of a single Refinement operation passed in to the Accumulation logic.
  • Output data of Is Authorized operation, passed into both Refinement and Accumulation.
  • Authorization parameter.
  • Data constituting the Authorization Token in a Work Package.
  • The authorizer tuple which together identifies a means of determining whether a Work Package is acceptable to execute on a core.
  • Hash of an encoded Authorizer value.
  • Hash of PVM program code.
  • Hash of a piece of extrinsic data.
  • Specification of a single piece of extrinsic data.
  • Vector type with a fixed length.
  • A definition of work to be done by the Refinement logic of a service and transformed into a WorkOutput for its Accumulation logic.
  • A work-package, a collection of work-items together with authorization and contextual information. This is processed in-core with Is-Authorized and Refine logic to produce a work-report.
  • Hash of an encoded block header.
  • Import segments specification, which identifies a single exported segment.
  • Transfer memo data, included with balance transfers between services.
  • Plain-old-data struct of the same length as an encoded Bandersnatch public key.
  • Plain-old-data struct of the same length as an encoded Ed25519 public key.
  • Plain-old-data struct of the same length and layout to ValKeyset struct. This does not bring in any cryptography.
  • Additional information on a validator, opaque to the actual usage.
  • Information on the Work Package, passed into Refine.
  • Hash of a Work Item’s WorkPayload.
  • Various pieces of information helpful to contextualize the Refinement process.
  • Hash of a Segment value.
  • Hash of a segment tree root node.
  • Information concerning a particular service’s state.
  • A single deferred transfer of balance and/or data, passed in to the invocation of On Transfer.
  • An mapping of key/value pairs stored as pairs ordered by their key in a Vec.
  • An set of items stored in order in a Vec.
  • Output data of Refinement operation, passed into Accumulation.
  • Hash of an encoded Work Package.
  • Payload data defining a Work Item.

Enums§

  • Reference to a sequence of import segments, which when combined with an index forms a commitment to a specific segment of data.

Constants§

Traits§

  • Trait for vector types which have a bounded length allowing element-wise transformation.
  • A data-structure providing the storage and lookup of key/value pairs with exclusive keys.
  • A data-structure providing the storage of non-duplicated items and the querying of their inclusion.

Type Aliases§