Clarify too long input.

This commit is contained in:
chriseth 2017-06-01 10:16:05 +02:00 committed by GitHub
parent 8856795031
commit 5785324724
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
## Preamble ## Preamble
EIP: <to be assigned> EIP: 213
Title: Precompiled contracts for addition and scalar multiplication Title: Precompiled contracts for addition and scalar multiplication
on the elliptic curve alt_bn128 on the elliptic curve alt_bn128
Author: Christian Reitwiessner<chris@ethereum.org> Author: Christian Reitwiessner<chris@ethereum.org>
@ -44,7 +44,7 @@ Field elements and scalars are encoded as 32 byte big-endian numbers. Curve poin
Tuples of objects are encoded as their concatenation. Tuples of objects are encoded as their concatenation.
For both precompiled contracts, if the input is shorter than expected, it is assumed to be virtually padded with zeros at the end (i.e. compatible with the semantics of the `CALLDATALOAD` opcode). For both precompiled contracts, if the input is shorter than expected, it is assumed to be virtually padded with zeros at the end (i.e. compatible with the semantics of the `CALLDATALOAD` opcode). If the input is longer than expected, surplus bytes at the end are ignored.
The length of the returned data is always as specified (i.e. it is not "unpadded"). The length of the returned data is always as specified (i.e. it is not "unpadded").