mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-02-25 15:53:08 +00:00
Update key_protocol/src/key_management/key_tree/keys_public.rs
Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com>
This commit is contained in:
parent
065eeac3b2
commit
4620219408
@ -54,9 +54,9 @@ impl KeyNode for ChildKeysPublic {
|
||||
hash_input.extend_from_slice(&cci.to_le_bytes());
|
||||
|
||||
let hash_value = match ((2u32).pow(31)).cmp(&cci) {
|
||||
/// Harden
|
||||
// Harden
|
||||
std::cmp::Ordering::Less => self.nth_child_harden_hash(cci),
|
||||
/// Non-harden
|
||||
// Non-harden
|
||||
std::cmp::Ordering::Greater => self.nth_child_nonharden_hash(cci),
|
||||
std::cmp::Ordering::Equal => self.nth_child_nonharden_hash(cci),
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user