mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-23 05:56:02 +01:00
chore: clippy
This commit is contained in:
@@ -13,8 +13,7 @@ pub fn hash_to_curve(message: &[u8]) -> k256::PublicKey {
|
||||
|
||||
let mut counter = 0;
|
||||
loop {
|
||||
let hash =
|
||||
sha256::Hash::hash(&vec![msg_to_hash, counter.to_string().into_bytes()].concat());
|
||||
let hash = sha256::Hash::hash(&[msg_to_hash, counter.to_string().into_bytes()].concat());
|
||||
match k256::PublicKey::from_sec1_bytes(
|
||||
&[0x02u8]
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user