Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove docs reference to removed eth-account recoverHash method #2615

Merged
merged 1 commit into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions docs/web3.eth.account.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,23 +168,6 @@ With the original message text and a signature:
>>> w3.eth.account.recover_message(message, signature=signed_message.signature)
'0x5ce9454909639D2D17A3F753ce7d93fa0b9aB12E'

Verify a Message from message hash
-----------------------------------------------------------

Sometimes, for historical reasons, you don't have the original message,
all you have is the prefixed & hashed message. To verify it, use:

.. CAUTION:: This method is deprecated, only having a hash typically indicates that
you're using some old kind of mechanism. Expect this method to go away in the
next major version upgrade.

.. doctest::

>>> message_hash = '0x1476abb745d423bf09273f1afd887d951181d25adc66c4834a70491911b7f750'
>>> signature = '0xe6ca9bba58c88611fad66a6ce8f996908195593807c4b38bd528d2cff09d4eb33e5bfbbf4d3e39b1a2fd816a7680c19ebebaf3a141b239934ad43cb33fcec8ce1c'
>>> w3.eth.account.recoverHash(message_hash, signature=signature)
'0x5ce9454909639D2D17A3F753ce7d93fa0b9aB12E'

Prepare message for ecrecover in Solidity
--------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions newsfragments/2615.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
remove section for deleted `account.recoverHash` method