From d731225d02c9b8d6dc9f2ba632923b765d0e111d Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 12 Aug 2016 15:54:17 +0200 Subject: Actually better to return zero on error. --- docs/units-and-global-variables.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/units-and-global-variables.rst') diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst index 62b9158d..d1d578ed 100644 --- a/docs/units-and-global-variables.rst +++ b/docs/units-and-global-variables.rst @@ -95,7 +95,7 @@ Mathematical and Cryptographic Functions ``ripemd160(...) returns (bytes20)``: compute RIPEMD-160 hash of the (tightly packed) arguments ``ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) returns (address)``: - recover the address associated with the public key from elliptic curve signature + recover the address associated with the public key from elliptic curve signature or return zero on error In the above, "tightly packed" means that the arguments are concatenated without padding. This means that the following are all identical:: -- cgit