aboutsummaryrefslogtreecommitdiffstats
path: root/docs/units-and-global-variables.rst
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-05-13 22:23:20 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-05-19 05:17:05 +0800
commita8164eb5d72f01b44d5c83ce1b0d9650dc54b04c (patch)
tree95773daa6e1fffcfefbd071cfce5d7dfecdc4af4 /docs/units-and-global-variables.rst
parent5903ca451fccca457057a380b855793791a09b02 (diff)
downloaddexon-solidity-a8164eb5d72f01b44d5c83ce1b0d9650dc54b04c.tar
dexon-solidity-a8164eb5d72f01b44d5c83ce1b0d9650dc54b04c.tar.gz
dexon-solidity-a8164eb5d72f01b44d5c83ce1b0d9650dc54b04c.tar.bz2
dexon-solidity-a8164eb5d72f01b44d5c83ce1b0d9650dc54b04c.tar.lz
dexon-solidity-a8164eb5d72f01b44d5c83ce1b0d9650dc54b04c.tar.xz
dexon-solidity-a8164eb5d72f01b44d5c83ce1b0d9650dc54b04c.tar.zst
dexon-solidity-a8164eb5d72f01b44d5c83ce1b0d9650dc54b04c.zip
Corrected documentation for ecrecover
Diffstat (limited to 'docs/units-and-global-variables.rst')
-rw-r--r--docs/units-and-global-variables.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst
index 9ddf52b1..20881b1d 100644
--- a/docs/units-and-global-variables.rst
+++ b/docs/units-and-global-variables.rst
@@ -94,8 +94,8 @@ Mathematical and Cryptographic Functions
compute the SHA-256 hash of the (tightly packed) arguments
`ripemd160(...) returns (bytes20)`:
compute RIPEMD-160 hash of the (tightly packed) arguments
-`ecrecover(bytes32, uint8, bytes32, bytes32) returns (address)`:
- recover public key from elliptic curve signature - arguments are (data, v, r, s)
+`ecrecover(bytes32 data, uint8 v, bytes32 r, bytes32 s) returns (address)`:
+ recover the address assocaited with the public key from elliptic curve signature
In the above, "tightly packed" means that the arguments are concatenated without padding.
This means that the following are all identical::