mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-15 04:29:30 +00:00
lint fix
This commit is contained in:
parent
bcdb2811e6
commit
4feca7f478
@ -13,6 +13,7 @@ pub struct ChildKeysPublic {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ChildKeysPublic {
|
impl ChildKeysPublic {
|
||||||
|
#[allow(clippy::big_endian_bytes)]
|
||||||
fn compute_hash_value(&self, cci: u32) -> [u8; 64] {
|
fn compute_hash_value(&self, cci: u32) -> [u8; 64] {
|
||||||
let mut hash_input = vec![];
|
let mut hash_input = vec![];
|
||||||
|
|
||||||
@ -23,7 +24,7 @@ impl ChildKeysPublic {
|
|||||||
let sk = k256::SecretKey::from_bytes(self.csk.value().into())
|
let sk = k256::SecretKey::from_bytes(self.csk.value().into())
|
||||||
.expect("32 bytes, within curve order");
|
.expect("32 bytes, within curve order");
|
||||||
let pk = sk.public_key();
|
let pk = sk.public_key();
|
||||||
hash_input.extend_from_slice(&pk.to_encoded_point(true).as_bytes());
|
hash_input.extend_from_slice(pk.to_encoded_point(true).as_bytes());
|
||||||
} else {
|
} else {
|
||||||
// Harden.
|
// Harden.
|
||||||
hash_input.extend_from_slice(&[0_u8]);
|
hash_input.extend_from_slice(&[0_u8]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user