Skip to content

Revisit whether uint128 or uint256 should be used for resource quantities #184

Description

@heueristik

Context

ERC20 token balances, counts and almost all numbering/quantity-related Ethereum application data is stored in uint256 data types.

Choosing uint128 for resource quantities could result in overflows for applications that want to interoperate with Ethereum state.

On the risc0 side, uint128 seems to be the natural representation of numbers.

Scope

Carefully revisit which types should be used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions