Crate arweave_rs_types

Crate arweave_rs_types 

Source
Expand description

Contains a common set of types used across all of the arweave_rs modules.

This module implements a single location where these types are managed, making them easy to reference and maintain.

Modules§

consensus
Aggregates Arweave consensus related constants and computations.
decode
Decodes hashes from base64_url encoded strings
stringify
Serializes and deserializes numbers represented as Strings.

Structs§

ArweaveBlockHeader
Stores deserialized fields from a JSON formatted Arweave block header.
Base64
A struct of Vec<u8> used for all base64_url encoded fields
Base64List
A struct of Vec<Base64> used for lists of Base64 encoded elements
DoubleSigningProof
Stores deserialized fields from a Double Signing Proof JSON
H256
A 256-bit hash type (32 bytes)
H384
A 384-bit hash type (48 bytes)
H256List
A struct of Vec<H256> used for lists of Base64 encoded hashes
Nonce
A struct of u64 which can be parsed from big-endian base64_url bytes
NonceLimiterInfo
Stores the nonce_limiter_info in the ArweaveBlockHeader
PoaData
Stores deserialized fields from a poa (Proof of Access) JSON
U256
Little-endian large integer type 256-bit unsigned integer.
USDToARRate
Stores deserialized values of the usd_to_ar_rate field in the ArweaveBlockHeader