#rlp #decoder #byte #data #prefix #decode #eg

no-std rlp-decoder

Recursive-length prefix data decoder

1 unstable release

0.1.0 Nov 9, 2024

#1777 in Parser implementations

Download history 265/week @ 2024-11-09

265 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