Expand description
JAM types used within the PVM instances (service code and authorizer code).
Macros§
Structs§
- Accumulate
Item - The result and surrounding context of a single Refinement operation passed in to the Accumulation logic.
- Auth
Output - Output data of Is Authorized operation, passed into both Refinement and Accumulation.
- Auth
Param - Authorization parameter.
- Authorization
- Data constituting the Authorization Token in a Work Package.
- Authorizer
- The authorizer tuple which together identifies a means of determining whether a Work Package is acceptable to execute on a core.
- Authorizer
Hash - Hash of an encoded Authorizer value.
- Code
Hash - Hash of PVM program code.
- Extrinsic
Hash - Hash of a piece of extrinsic data.
- Extrinsic
Spec - Specification of a single piece of extrinsic data.
- Fixed
Vec - Vector type with a fixed length.
- Generic
Work Item - A definition of work to be done by the Refinement logic of a service and transformed into a WorkOutput for its Accumulation logic.
- Generic
Work Package - 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.
- Header
Hash - Hash of an encoded block header.
- Import
Spec - Import segments specification, which identifies a single exported segment.
- Memo
- Transfer memo data, included with balance transfers between services.
- Opaque
Bandersnatch Public - Plain-old-data struct of the same length as an encoded Bandersnatch public key.
- Opaque
Ed25519 Public - Plain-old-data struct of the same length as an encoded Ed25519 public key.
- Opaque
ValKeyset - Plain-old-data struct of the same length and layout to
ValKeysetstruct. This does not bring in any cryptography. - Opaque
Validator Metadata - Additional information on a validator, opaque to the actual usage.
- Package
Info - Information on the Work Package, passed into Refine.
- Payload
Hash - Hash of a Work Item’s WorkPayload.
- Refine
Context - Various pieces of information helpful to contextualize the Refinement process.
- Segment
Hash - Hash of a Segment value.
- Segment
Tree Root - Hash of a segment tree root node.
- Service
Info - Information concerning a particular service’s state.
- Transfer
Record - A single deferred transfer of balance and/or data, passed in to the invocation of On Transfer.
- VecMap
- An mapping of key/value pairs stored as pairs ordered by their key in a Vec.
- VecSet
- An set of items stored in order in a Vec.
- Work
Output - Output data of Refinement operation, passed into Accumulation.
- Work
Package Hash - Hash of an encoded Work Package.
- Work
Payload - Payload data defining a Work Item.
Enums§
- Root
Identifier - Reference to a sequence of import segments, which when combined with an index forms a commitment to a specific segment of data.
Constants§
- AUTH_
QUEUE_ LEN - Number of authorizations in a queue allocated to a core.
- CHUNKS_
PER_ SEGMENT - Number of chunks in a segment.
- CHUNK_
LEN - Number of bytes in a chunk.
- CHUNK_
POINTS - Number of points in a chunk.
- MAX_
IMPORTS - Maximum number of imports in a Work Package.
- MAX_
WORK_ ITEMS - Maximum number of Work Items in a Work Package.
- MEMO_
LEN - Size of memo in transfers.
- MIN_
TURNAROUND_ PERIOD - Minimum period in blocks between going from becoming
AvailabletoZombie, and then again fromZombieto non-existent. - POINT_
LEN - Number of bytes in an erasure-coding point.
- SEGMENT_
LEN - Number of bytes in a segment.
- VAL_
COUNT - Total number of validators.
Traits§
- Bounded
Map - Trait for vector types which have a bounded length allowing element-wise transformation.
- MapLike
- A data-structure providing the storage and lookup of key/value pairs with exclusive keys.
- SetLike
- A data-structure providing the storage of non-duplicated items and the querying of their inclusion.
Type Aliases§
- Auth
Queue - A queue of AuthorizerHashs, each of which will be rotated into the authorizer pool for a core.
- Balance
- Type to represent a balance.
- Core
Index - Type to represent the index of a compute core.
- Gas
- Type to represent some gas.
- Generic
Work Items - Sequence of GenericWorkItems within a GenericWorkPackage and thus limited in length to MAX_WORK_ITEMS.
- Hash
- A basic 256-bit data value.
- Opaque
ValKeysets - The opaque keys for each validator.
- Segment
- A segment of data.
- Service
Id - Type to represent the index of a service.
- Slot
- Type that represents a time slot of six seconds.
- ValIndex
- Type to represent the index of a validator.
- Work
Item - A definition of work to be done by the Refinement logic of a service and transformed into a WorkOutput for its Accumulation logic.
- Work
Item Imports Vec - A sequence of import specifications.
- Work
Package - 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.