Skip to main content

Module codec

Module codec 

Source

Traits§

DecodableConfig
StarkProtocolConfig that has decodable associated types. This is a separate trait to avoid Rust’s orphan rule.
Decode
Hardware and language independent decoding. Uses the Reader pattern for efficient decoding.
EncodableConfig
StarkProtocolConfig that has encodable associated types. This is a separate trait to avoid Rust’s orphan rule.
Encode
Hardware and language independent encoding. Uses the Writer pattern for more efficient encoding without intermediate buffers.

Functions§

decode_extension_field32
Decode an extension field element by decoding each basis coefficient.
decode_into_vec
Decodes into a vector given preset length
decode_prime_field32
Decode a PrimeField32 element from 4 little-endian bytes.
encode_extension_field32
Encode an extension field element by encoding each basis coefficient.
encode_iter
Encodes each element (no length)
encode_prime_field32
Encode a PrimeField32 element as 4 little-endian bytes of its canonical u32 value.
encode_slice
Encodes length of slice and then each element

Derive Macros§

Decode
Encode