web3.js
web3.js copied to clipboard
Proposal to Rename `recoverTransaction()`, `recover()` and `sign()` for clarity
- Proposal to rename
accounts.recoverTransaction()toaccounts.recoverSignerFromTx() - Proposal to rename
accounts.recover()toaccounts.recoverSignerFromMsg() - Proposal to rename
accounts.sign()toaccounts.signMsg()
The reason is that the functions are actually recovering the signer, not the entire transaction, this change could enhance clarity and align the function name with its purpose.
By adopting these name changes, the functions will become more intuitive and straightforward:
signMsg --> recoverSignerFromMsg
signTransaction --> recoverSignerFromTx