Clearing up a comment about the prefix for signing (#8828)

This commit is contained in:
Elichai Turkel 2018-06-11 11:02:46 +03:00 committed by Afri Schoedon
parent af1088ef61
commit 986f485b3e
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ pub fn fetch_gas_price_corpus(
/// Returns a eth_sign-compatible hash of data to sign.
/// The data is prepended with special message to prevent
/// chosen-plaintext attacks.
/// malicious DApps from using the function to sign forged transactions.
pub fn eth_data_hash(mut data: Bytes) -> H256 {
let mut message_data =
format!("\x19Ethereum Signed Message:\n{}", data.len())