API eth_sign properties
See original GitHub issueThis is more of a design choice, but was there a reason we decided to implement eth_sign as such:
https://github.com/aionnetwork/aion/blob/843761824132b2dfe2a6e8dbc5b755167f571718/modApiServer/src/org/aion/api/server/rpc/ApiWeb3Aion.java#L614-L636
Functionally it works, but the use of keccak256 when we (probably?) use blake2b elsewhere doesn’t make sense. I vote we switch to blake2b because:
- There are no compatibility issues, the VM does not support either hashing algorithm right now
- It’s more consistent with what developers and users expect when using Aion
For context, I stumbled on this adding the offline signing feature for aion-keystore
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
API methods - EthSigner - latest - ConsenSys
Calculates an Ethereum specific signature using sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message)))." Adds a prefix to ...
Read more >web3.eth API — Web3.py 5.31.3 documentation - Read the Docs
The web3.eth object exposes the following properties and methods to interact with the RPC APIs under the eth_ namespace. Often, when a property...
Read more >EthSign
EthSign is a decentralized, versioned, and consensus-based electronic agreements signing application built on Polygon.
Read more >Ethereum: Signing and Validating - Medium
A core primitive of Ethereum and other cryptocurrencies is the ability to sign data that can be verified by anyone.
Read more >EthSign Token Sale Review And Token Analysis | CryptoRank.io
ESA enables electronic agreements to have tighter binding properties by enforcing its execution using smart contracts in addition to or in place of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I vote to completely remove eth_sign from the json rpc api. It’s confusing, since people think this function let’s you sign a raw transaction (which it doesn’t) and most people don’t know about the payload signature scheme to validate random data (which this endpoint was designed for)
the aion web3 support the sign feature.