aboutsummaryrefslogtreecommitdiffstats
path: root/docs/miscellaneous.rst
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-08-12 21:54:17 +0800
committerchriseth <c@ethdev.com>2016-08-16 20:53:01 +0800
commitd731225d02c9b8d6dc9f2ba632923b765d0e111d (patch)
treec91454591ceb4a1329adafb1dc66d2500fe9f3c1 /docs/miscellaneous.rst
parent034d436933806c204b84b0500e2116938cb6a030 (diff)
downloaddexon-solidity-d731225d02c9b8d6dc9f2ba632923b765d0e111d.tar.gz
dexon-solidity-d731225d02c9b8d6dc9f2ba632923b765d0e111d.tar.zst
dexon-solidity-d731225d02c9b8d6dc9f2ba632923b765d0e111d.zip
Actually better to return zero on error.
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r--docs/miscellaneous.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index ca0cf593..804d69ef 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -286,7 +286,7 @@ Global Variables
- ``sha3(...) returns (bytes32)``: compute the Ethereum-SHA-3 (KECCAK-256) hash of the (tightly packed) arguments
- ``sha256(...) returns (bytes32)``: compute the SHA-256 hash of the (tightly packed) arguments
- ``ripemd160(...) returns (bytes20)``: compute the RIPEMD-160 hash of the (tightly packed) arguments
-- ``ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) returns (address)``: recover address associated with the public key from elliptic curve signature
+- ``ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) returns (address)``: recover address associated with the public key from elliptic curve signature, return zero on error
- ``addmod(uint x, uint y, uint k) returns (uint)``: compute ``(x + y) % k`` where the addition is performed with arbitrary precision and does not wrap around at ``2**256``
- ``mulmod(uint x, uint y, uint k) returns (uint)``: compute ``(x * y) % k`` where the multiplication is performed with arbitrary precision and does not wrap around at ``2**256``
- ``this`` (current contract's type): the current contract, explicitly convertible to ``address``