Skip to content

1bffffffffffffffff does not round-trip #3

@hildjj

Description

@hildjj

1bffffffffffffffff has to turn into a BigInteger in JavaScript when decoded. When re-encoded, that turns into c248ffffffffffffffff:

  c2                -- Tag #2
    48              -- Bytes, length: 8
      ffffffffffffffff -- ffffffffffffffff

If I special-case the encoding for BigIntegers that fit into 8 byte normal integers, then c248ffffffffffffffff won't round-trip. My suggestion is to just set roundtrip to false for this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions