pallas/pallas-codec
Matthias Benkort 7cb1ffe100
fix(codec): Fix flat encoding and decoding of arbitrarily size integers (#378)
This commits fixes the flat encoding and decoding (and consequently,
  the zigzag) for large integers in the following ways:

  - It removes support for encoding and decoding i128 values.

  - It optionally (feature = "num-bigint") introduces encoding and
    decoding of large sized integers through the num-bigint::BigInt
    type.

  Without the feature enabled, it is still possible to encode and decode
  isize values; but the use of i128 is now prohibited (as it would
  overflow on boundaries) in favor of arbitrarily sized integers.

  The commit also introduces a missing property roundtrip for encoding
  and decoding large integers, which was missing and thus, failed to
  identify the overflow problem.

  See related issue: https://github.com/aiken-lang/aiken/issues/796
2024-01-13 10:09:16 -03:00
..
src fix(codec): Fix flat encoding and decoding of arbitrarily size integers (#378) 2024-01-13 10:09:16 -03:00
tests fix(codec): Fix flat encoding and decoding of arbitrarily size integers (#378) 2024-01-13 10:09:16 -03:00
Cargo.toml fix(codec): Fix flat encoding and decoding of arbitrarily size integers (#378) 2024-01-13 10:09:16 -03:00
README.md feat: Move flat en/de from aiken to pallas (#303) 2023-10-04 19:08:52 -04:00

Pallas Codec

Flat

A Rust port of the Haskell reference implementation.