Skip to content

Implement bounded 256 bit int #340

@obscuren

Description

@obscuren

https://github.com/jonasnick/eth-neg-value-tx is calling for fixed size integers. The first implementation of this package will use the x = x & 1 << 256 - 1 to limit all operations.

  • Create a new package with bounded arithmetic
    • Add / Sub / Mul / Div / Mod
    • Set / SetString
    • Uint / Int
    • Cmp
  • Replace big.Int through out the implementation
  • Support new package in rlp.Read / Write

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions