#block-header #deserialize #time #type #validating #arweave #consensus

arweave_rs_types

Contains the run time types for validating Arweave block headers (including deserialization methods)

1 unstable release

0.1.0 Feb 14, 2024

#6 in #validating

23 downloads per month
Used in 4 crates

MIT/Apache

40KB
648 lines

Arweave Types

This library package contains the constants related to Arweaves consensus mechanisims as well as the utility functions that combine inputs for use in consensus.

ArweaveBlockHeader

Most of the effort in this package goes in to deserializing an Arweave Block Header JSON into run time types suitable for validating consensus rules. The run time types defined in this package are widely used across the other packages in this workspace.

Checkout the comments on the ArweaveBlockHeader struct to learn what each of the fields is for.

ArweaveBlockHeaderhttps://github.com/ThePeopleOfTheNetwork/arweave_rs/blob/d40635a758c28679ccb2dbdf29d1ad55350a6f0a/types/src/lib.rs#L22-L40


lib.rs:

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.

Dependencies

~8–18MB
~256K SLoC