Skip to main content

jam_std_common/
lib.rs

1mod crypto;
2pub use crypto::{
3	bandersnatch, ed25519,
4	hashing::{hash_encoded, hash_raw, hash_raw_concat, keccak, keccak_concat, HashedInput},
5	mmr::Mmr,
6};
7
8mod node;
9pub use node::{
10	BlockDesc, ChainSub, ChainSubUpdate, Error as NodeError, Node, NodeExt, NodeResult, SyncState,
11	SyncStatus, VersionedParameters, WorkPackageStatus,
12};
13
14mod rpc;
15pub use rpc::{RpcClient, RpcServer};
16
17pub mod telemetry;
18
19mod net;
20pub use net::*;
21
22mod safrole;
23pub use safrole::{
24	ticket::{TicketBodies, TicketBody, TicketEnvelope, TicketId, TicketSignature},
25	EpochIndex, EpochKeySet, EpochKeys, EpochTickets, EpochTicketsAccumulator, NextEpochDescriptor,
26	TicketOrKey, TicketsOrKeys,
27};
28
29mod state;
30pub use state::{
31	Accumulated, AccumulationOutput, AuthPool, AuthPools, AuthQueues, AvailabilityAssignment,
32	AvailabilityAssignments, BlockInfo, CoreActivityRecord, CoresStats, Disputes, EntropyBuffer,
33	IntoStorageKey, Privileges, ReadyQueue, ReadyRecord, RecentBlocks, Service,
34	ServiceActivityRecord, ServiceKey, ServicesStats, Statistics, StorageKey, SystemKey,
35	ValActivityRecord, ValidatorsStats,
36};
37
38mod keyset;
39pub use keyset::{EdKeys, SecretKeyset, ValKeyset, ValKeysets, ValidatorMetadata};
40
41mod availability;
42pub use availability::{
43	AvailabilityAssurance, AvailabilityBitfield, AvailabilityStatement, ErasureRoot,
44};
45
46mod bundle;
47pub use bundle::{build_encoded_bundle, import_proof_data, import_proofs, ImportData};
48
49mod header;
50pub use header::{EpochMark, Header, OffendersMark, SealPayload, TicketsMark};
51
52mod extrinsic;
53pub use extrinsic::{
54	tests_utils as extrinsic_tests_utils, AssurancesXt, CulpritProof, DisputesXt, Extrinsic,
55	FaultProof, GuaranteeSignatures, GuaranteesXt, Judgement, LightExtrinsic, LightGuaranteesXt,
56	LightPreimage, LightPreimagesXt, LightReportGuarantee, LightReportGuaranteeEncode, Preimage,
57	PreimagesXt, ReportGuarantee, TicketsXt, ValSignature, Verdict, VerdictKind, VerdictVotes,
58	WorkPackageSpec, WorkReport, MAX_OFFENSES_COUNT, MAX_VERDICTS_COUNT,
59};
60
61mod simple;
62pub use simple::{
63	availability_data_expiration, max_block_size, max_bundle_size, max_import_proof_size,
64	max_segment_slice_vec_bytes, max_segment_vec_bytes, slot_duration, Block, Entropy,
65	SegmentSliceVec, TrancheIndex, GUARANTEE_MIN_SIGNATURES, SANE_MAX_PACKAGE_SIZE,
66};
67
68mod util;
69pub use util::{
70	bounded_string::{BoundedString, IntoTruncated, Truncated},
71	merkle::{cd_merkle_proof, cd_merkle_root, merkle_node, CdMerkleProof, MerkleNodeRef},
72	null::{DecodeInto, NewNull, Null},
73};
74
75mod finality;
76pub use finality::{GrandpaMessage, GrandpaRoundNumber, GrandpaSetId};