jam-std-common 0.1.29

Common datatypes and utilities for the JAM nodes and tooling
Documentation
mod crypto;
pub use crypto::{
	bandersnatch, ed25519,
	hashing::{HashedInput, hash_encoded, hash_raw, hash_raw_concat, keccak, keccak_concat},
	mmr::Mmr,
};

mod node;
pub use node::{
	BlockDesc, ChainSub, ChainSubUpdate, Error as NodeError, Node, NodeExt, NodeResult, SyncState,
	SyncStatus, VersionedParameters, WorkPackageStatus,
};

mod rpc;
pub use rpc::{RpcClient, RpcServer};

pub mod telemetry;

mod net;
pub use net::*;

mod safrole;
pub use safrole::{
	EpochIndex, EpochKeySet, EpochKeys, EpochTickets, EpochTicketsAccumulator, NextEpochDescriptor,
	TicketOrKey, TicketsOrKeys,
	ticket::{TicketBodies, TicketBody, TicketEnvelope, TicketId, TicketSignature},
};

mod state;
pub use state::{
	Accumulated, AccumulationOutput, AuthPool, AuthPools, AuthQueues, AvailabilityAssignment,
	AvailabilityAssignments, BlockInfo, CoreActivityRecord, CoresStats, Disputes, EntropyBuffer,
	FootprintItem, IntoStorageKey, Privileges, ReadyQueue, ReadyRecord, RecentBlocks, SafroleState,
	Service, ServiceActivityRecord, ServiceKey, ServicesStats, Statistics, StorageKey, SystemKey,
	ValActivityRecord, ValidatorsStats, service_id_from_info_key,
};

mod keyset;
pub use keyset::{EdKeys, SecretKeyset, ValKeyset, ValKeysets, ValidatorMetadata};

mod availability;
pub use availability::{
	AvailabilityAssurance, AvailabilityBitfield, AvailabilityStatement, ErasureRoot,
};

mod bundle;
pub use bundle::{ImportData, build_encoded_bundle, import_proof_data, import_proofs};

mod header;
pub use header::{EpochMark, Header, OffendersMark, SealPayload, TicketsMark};

mod extrinsic;
pub use extrinsic::{
	AssurancesXt, CulpritProof, DisputesXt, Extrinsic, FaultProof, GuaranteeSignatures,
	GuaranteesXt, Judgement, LightExtrinsic, LightGuaranteesXt, LightPreimage, LightPreimagesXt,
	LightReportGuarantee, LightReportGuaranteeEncode, MAX_OFFENSES_COUNT, MAX_VERDICTS_COUNT,
	Preimage, PreimagesXt, ReportGuarantee, TicketsXt, ValSignature, Verdict, VerdictKind,
	VerdictVotes, WorkPackageSpec, WorkReport, tests_utils as extrinsic_tests_utils,
};

mod simple;
pub use simple::{
	Block, Entropy, GUARANTEE_MIN_SIGNATURES, ImmutableHeader, ImmutableWorkPackage,
	SANE_MAX_PACKAGE_SIZE, SegmentSliceVec, TrancheIndex, availability_data_expiration,
	max_block_size, max_bundle_size, max_import_footprint_in_bundle, max_import_proof_size,
	max_segment_vec_bytes, slot_duration,
};

mod util;
pub use util::{
	bounded_string::{BoundedString, IntoTruncated, Truncated},
	bytes_cursor::BytesCursor,
	counted_output::CountedOutput,
	immutable::{HashOrNoHash, Immutable, ImmutableWrap, NoHash},
	injective_decode::InjectiveDecode,
	merkle::{
		CdMerkleProof, MerkleNodeRef, cd_merkle_proof, cd_merkle_root, max_merkle_proof_len,
		merkle_node,
	},
	null::{DecodeInto, NewNull, Null},
	recorded_input::RecordedInput,
};

mod finality;
pub use finality::{GrandpaMessage, GrandpaRoundNumber, GrandpaSetId, GrandpaTarget};