We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/aionnetwork/AVM/blob/master/org.aion.avm.userlib/src/org/aion/avm/userlib/AionBuffer.java#L388
Because BigIntegers are possible to get to this point which are large.
It also says
// BigInteger instances can't be larger than 32-bytes, in AVM.
If this is true I'm wrong, please reference proof for that statement
The text was updated successfully, but these errors were encountered:
This is a restriction imposed by AVM, specifically:
AVM/org.aion.avm.rt/src/s/java/math/BigInteger.java
Line 392 in 764e619
In standard Java, these are unbounded, but the limit is imposed by the AVM to constrain the effort expended for constant cost.
Sorry, something went wrong.
Ah, so the Aion BigInteger implementation shadows java.math.BigInteger.
java.math.BigInteger
What is the primary documentation I should cite for that?
Can I get a BigInteger.MAX_VALUE and BigInteger.MIN_VALUE?
BigInteger.MAX_VALUE
BigInteger.MIN_VALUE
Is BigInteger.MAX_VALUE.add(BigInteger.ONE) undefined? Is that documented?
BigInteger.MAX_VALUE.add(BigInteger.ONE)
Right now AIP-040 was expecting BigInteger.MAX_VALUE == 2^256 but that is not the case.
BigInteger.MAX_VALUE == 2^256
This is where I checked for documentation
No branches or pull requests
https://github.com/aionnetwork/AVM/blob/master/org.aion.avm.userlib/src/org/aion/avm/userlib/AionBuffer.java#L388
Because BigIntegers are possible to get to this point which are large.
It also says
If this is true I'm wrong, please reference proof for that statement
The text was updated successfully, but these errors were encountered: