referrerpolicy=no-referrer-when-downgrade

Crate sp_transaction_storage_proof

Crate sp_transaction_storage_proof 

Source
Expand description

Storage proof primitives. Contains types and basic code to extract storage proofs for indexed transactions.

Modules§

registration
runtime_api
Runtime API definition for the transaction storage proof processing.

Structs§

IndexedTransactionInfo
Metadata for a single indexed transaction.
InherentDataProvider
Provider for inherent data.
TransactionStorageProof
Holds a chunk of data retrieved from storage along with a proof that the data was stored at that location in the trie.

Enums§

Error
Errors that occur in context of inherents.
HashingAlgorithm
Hashing algorithm used to compute a ContentHash.
InherentError
Errors that can occur while checking the storage proof.

Constants§

CHUNK_SIZE
Proof trie value size.
INHERENT_IDENTIFIER
The identifier for the proof inherent.

Traits§

IndexedBody
An interface to request indexed data from the client.
TransactionStorageProofInherentData
Auxiliary trait to extract storage proof.

Functions§

encode_index
A utility function to encode the transaction index as a trie key.
num_chunks
A utility function to calculate the number of chunks.
random_chunk
A utility function to extract a chunk index from the source of randomness.

Type Aliases§

ChunkIndex
Type used for counting/tracking chunks.
CidCodec
IPFS multicodec content-type identifier for an indexed payload. Full list of values here.
ContentHash
Hash of indexed data; the algorithm is reported in HashingAlgorithm.