Skip to main content

Module light_client

Module light_client 

Source

Constantsยง

ARITY ๐Ÿ”’

Functionsยง

build_namespace_proof ๐Ÿ”’
Construct a NamespaceProof for the namespace at ns_index of the given block.
chain_too_long ๐Ÿ”’
child_values ๐Ÿ”’
Child values of node, whose children have indices parent * ARITY + n at their level, in the tree where the rightmost non-empty node of that level is edge with value edge_value.
complete_proof_with_cert2 ๐Ÿ”’
Extend proof from leaf to the leaf directly committed by the earliest stored cert2, adding at most chain_limit leaves.
earliest_cert2_height ๐Ÿ”’
The earliest stored cert2 height at or after height. Errors are treated as no cert2: this only chooses between proof strategies, and the chosen path will surface any persistent error.
fetch_block_data_range ๐Ÿ”’
get_header_proof ๐Ÿ”’
get_leaf_proof ๐Ÿ”’
Construct a proof that the requested leaf is finalized.
get_leaf_proof_with_cert2 ๐Ÿ”’
Build a leaf proof for the new protocol using certificate2 finality.
get_leaf_proof_with_finalized_assumption ๐Ÿ”’
get_leaf_proof_with_leaf_chain ๐Ÿ”’
Build a leaf proof for a legacy leaf from the justify QCs of the leaves that follow it.
get_namespace_proof_range ๐Ÿ”’
Single-namespace version of get_namespaces_proof_range.
get_namespaces_proof_range ๐Ÿ”’
internal ๐Ÿ”’
merkle_error ๐Ÿ”’
not_found ๐Ÿ”’
parse_namespaces_str ๐Ÿ”’
Decode the namespaces path segment: a TaggedBase64 string tagged NS wrapping a JSON-encoded Vec<u64>.
rebuild_block_proof ๐Ÿ”’
The path to target.pos in the block tree of the first num_leaves leaves.
rebuild_header_path ๐Ÿ”’
Prove header against root using the snapshot at head, when the state at root is pruned.

Type Aliasesยง

BlockMerkleNode ๐Ÿ”’
BlockMerkleProof ๐Ÿ”’