Skip to content

Cktls#27

Merged
rsoury merged 9 commits intomainfrom
cktls
Apr 12, 2025
Merged

Cktls#27
rsoury merged 9 commits intomainfrom
cktls

Conversation

@xlassix
Copy link
Collaborator

@xlassix xlassix commented Apr 10, 2025

No description provided.

///
/// * `bool` - True if the verification is successful, false otherwise
pub fn ecdsa_verification(&self, proof: String, signature: String) -> bool {
let root_hash = hash_eth_message(self.generate_merkle_tree(proof));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For maintainability, this should be done outside of the ecdsa_verification

The name of a function should describe exactly what's happening in the function.

Therefore generating the root hash (ecdsa signature message), should exist outside of the method to verify ecdsa (ecdsa_verification).

Just a note...

@rsoury rsoury merged commit 502f5d4 into main Apr 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants