#rlp #decoder #byte #data #prefix #decode #onto

no-std rlp-decoder

Recursive-length prefix data decoder

1 unstable release

0.1.0 Nov 9, 2024

#2165 in Parser implementations

Download history 177/week @ 2024-11-04 90/week @ 2024-11-11 92/week @ 2024-11-18 48/week @ 2024-11-25 8/week @ 2024-12-02 67/week @ 2024-12-09

217 downloads per month

MIT/Apache

21KB
509 lines

RLP-decoder

Recursive-length-prefix decoding in Rust.

This project is forked from parity rlp library, and removed all the encoding functions. To be used in embedded systems.

The original parity rlp library heavily relies on Bytes crate, which can not work on chipsets (eg nanox) do not support CAS operations.


lib.rs:

Recursive Length Prefix serialization crate.

Allows decoding, and view onto rlp-slice

What should you use when?

Use decode function when:

  • You want to decode something inline.
  • You do not work on big set of data.
  • You want to decode whole rlp at once.

Use Rlp when:

  • You need to handle data corruption errors.
  • You are working on input data.
  • You want to get view onto rlp-slice.
  • You don't want to decode whole rlp at once.

Dependencies

~11KB