chore: fmt
This commit is contained in:
parent
7c465c2027
commit
a78979a3ac
|
@ -3,8 +3,8 @@ use ethers_utils::{hash_message, keccak256};
|
||||||
|
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
use secp256k1::{
|
use secp256k1::{
|
||||||
key::ONE_KEY, Error as SecpError, Message, PublicKey as PubKey, recovery::RecoveryId, Secp256k1,
|
key::ONE_KEY, recovery::RecoveryId, Error as SecpError, Message, PublicKey as PubKey,
|
||||||
SecretKey,
|
Secp256k1, SecretKey,
|
||||||
};
|
};
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
|
@ -58,7 +58,7 @@ mod tests {
|
||||||
// from https://emn178.github.io/online-tools/keccak_256.html
|
// from https://emn178.github.io/online-tools/keccak_256.html
|
||||||
fn test_keccak256() {
|
fn test_keccak256() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
keccak256("hello".as_bytes()).to_hex::<String>(),
|
keccak256(b"hello").to_hex::<String>(),
|
||||||
"1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
|
"1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue