Modules§
- bandersnatch
- VRFs backed by Bandersnatch, an elliptic curve built over BLS12-381 scalar field.
- ed25519
- telemetry
Structs§
- Availability
Assignment - Availability
Assurance - Multiple signatures are combined with the statement and consolidated into a single Assurance.
- Availability
Bitfield - Availability
Statement - Multiple signatures are consolidated into a single Attestation in a space-efficient
manner using a
BitVecto succinctly express which validators have attested. - Block
- Block
Desc - Block
Info - Block information.
- Bounded
String - A UTF-8 encoded string not exceeding
Nbytes in length. - Chain
SubUpdate - An update from a subscription tracking the “best” or finalized chain.
- Core
Activity Record - Culprit
Proof - Disputes
- Disputes
Xt - The disputes extrinsic.
- Entropy
- Erasure
Root - Extrinsic
- Fault
Proof - Hashed
Input - A wrapper for
Inputthat hashes the bytes as they are read from the underlying input. - Header
- Import
Data - Judgement
- Mmr
- Next
Epoch Descriptor - Information about the next epoch.
- Null
- Peer
Addr - Address of a peer, including UDP port number. Convertible to/from
SocketAddr. The reason we don’t just useSocketAddris thatSocketAddrvalues cannot be directly SCALE encoded/decoded;PeerAddrvalues can be. - Peer
Details - ID and address of a peer.
- PeerId
- Identity of a network peer. This is just an Ed25519 public key. The corresponding secret key is used to sign connection handshakes (the TLS protocol is used).
- Preimage
- Privileges
- Ready
Record - Recent
Blocks - Imported blocks information
- Report
Guarantee - A Work Report along with a guarantee of its correctness from staked sources.
- Seal
Payload - Secret
Keyset - Segment
Slice Vec - Segment shard vector. Size is bound by the maximum number of segments a work package may export.
- Service
- Service
Activity Record - Statistics
- Storage
Key - Sync
State - Ticket
Body - Ticket data on-chain.
- Ticket
Envelope - Ticket envelope used during submission.
- Ticket
Id - Unresolved
Addr - A (host, port) pair, with the host part being a plain
String(ie unresolved). - ValActivity
Record - ValKeyset
- ValSignature
- Validator
Metadata - Verdict
- Collection of judgements for a given target work report.
- Work
Package Spec - Secure reference to a Work Package.
- Work
Report - Execution report of a Work Package, mainly comprising the Results from the Refinement of its Work Items.
Enums§
- Merkle
Node Ref - A node in a Merkle tree.
- Node
Error - Peer
Details Parse Err - Error parsing peer details (ID and address).
- Peer
IdParse Err - Error parsing the text form of a peer ID.
- Service
Key - Sync
Status - System
Key - Ticket
OrKey - Tickets
OrKeys - Verdict
Kind - Versioned
Parameters - Work
Package Status - Status of a work-package following execution of a block.
Constants§
- GUARANTEE_
MIN_ SIGNATURES - The min. no. of signatures required for a guarantee to be valid.
- SANE_
MAX_ PACKAGE_ SIZE - Maximum basic size of a Work Package that we accept. This should be at least ImportSpec::encoded_fixed_size() * max_imports()
Traits§
- Decode
Into - Into
Storage Key - Into
Truncated - NewNull
- Node
- Generic JAM node interface.
- NodeExt
- An extension trait for
Nodes which provides various convenience methods. In particular, it provides wrapper methods which encode/decode data provided to/returned from the underlyingNodemethods. - RpcClient
- Client implementation for the
RpcRPC API. - RpcServer
- Server trait implementation for the
RpcRPC API. - Truncated
Functions§
- build_
encoded_ bundle - Construct an encoded Work Package Bundle from its parts
- cd_
merkle_ proof - Returns the root of the “constant-depth” Merkle tree containing the given pre-hashed items or
subtree roots plus as many zero-hashes as necessary to bring the number of hashes up to
padded_len. Also returns a “proof” of the item/subtree with the specified index. - cd_
merkle_ root - Returns the root of the “constant-depth” Merkle tree containing the given pre-hashed items or
subtree roots plus as many zero-hashes as necessary to bring the number of hashes up to
padded_len. - hash_
encoded - hash_
raw - hash_
raw_ concat - Compute the hash of the concatenation of byte slices.
- import_
proof_ data - Prepare import proof data for a set of segments.
This function splits the segment into
PROVEN_PER_SEGMENTpages and for each page returns a page prefix proof along with the vector ofPROVEN_PER_SEGMENThashes that form the page. - import_
proofs - Generate import proofs for exported segments. Returns a full import proof for each segment and a tree root.
- keccak
- keccak_
concat - Compute Keccak hash of the concatenation of byte slices.
- max_
bundle_ size - The conservative maximum size of a Work Package Bundle.
- max_
import_ proof_ size - max_
segment_ slice_ vec_ bytes - Maximum size in bytes for a work package segments shard
- max_
segment_ vec_ bytes - Maximum size in bytes for a work package exported segments
- merkle_
node - Returns the root node of the Merkle tree containing the given items plus as many zero-hashes
as necessary to bring the number of items up to
padded_len. - slot_
duration - Duration of a time slot, as a Rust-native
Duration.
Type Aliases§
- Accumulated
- Accumulation
Output - Assurances
Xt - A bunch of assurances.
- Auth
Pool - Auth
Pools - Auth
Queues - Availability
Assignments - CdMerkle
Proof - Proof for an item or subtree in a constant-depth Merkle tree.
- Chain
Sub - Cores
Stats - EdKeys
- Entropy
Buffer - Entries relative to epoch
N[0]: epochNentropy accumulator. Updated on each block with fresh entropy.[i], for 1 ≤ i ≤ 3: accumulator snapshot at the begin of epochN-i+1. IfN-i+1 < 0then the corresponding entry is set to some fixed default value. - Epoch
Index - Index of an epoch.
- Epoch
Mark - Epoch
Tickets - Epoch
Tickets Accumulator - Guarantee
Signatures - Guarantees
Xt - A bunch of guarantees.
- Node
Result - Offenders
Mark - Preimages
Xt - A bunch of preimages.
- Ready
Queue - Segment
Vec - Services
Stats - Ticket
Bodies - A collection of ticket bodies.
- Ticket
Signature - Ticket ring vrf signature.
- Tickets
Mark - Tickets
Xt - A collection of ticket envelopes.
- Tranche
Index - Type to represent the index of a tranche.
- ValKeysets
- Validators
Stats - Verdict
Votes - Judgements coming from a supermajority of either the active validators set (κ) or the previous epoch’s validator set (λ).