Skip to content

Commit

Permalink
docs: add security advisory note for ecrecover (vyperlang#3539)
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Cooper <cooper.charles.m@gmail.com>
  • Loading branch information
pcaversaccio and charles-cooper authored Aug 7, 2023
1 parent cc2a5cd commit 728a276
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/built-in-functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,11 @@ Cryptography
* ``s``: second 32 bytes of signature
* ``v``: final 1 byte of signature

Returns the associated address, or ``0`` on error.
Returns the associated address, or ``empty(address)`` on error.

.. note::

Prior to Vyper ``0.3.10``, the ``ecrecover`` function could return an undefined (possibly nonzero) value for invalid inputs to ``ecrecover``. For more information, please see `GHSA-f5x6-7qgp-jhf3 <https://github.com/vyperlang/vyper/security/advisories/GHSA-f5x6-7qgp-jhf3>`_.

.. code-block:: python
Expand Down

0 comments on commit 728a276

Please sign in to comment.