mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-05 11:34:35 +00:00
Clarify too long input.
This commit is contained in:
parent
8856795031
commit
5785324724
@ -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").
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user