-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Proof of Work #75
base: main
Are you sure you want to change the base?
Conversation
src/pow/mod.rs
Outdated
/// - **Preimage Resistance**: For all adversary, given y = H(x) where x is | ||
/// random, the probability to find z such that H(z) = y is negligible. | ||
/// - **Collision Resistant**: It's computationally infeasible to find two | ||
/// distinct inputs to lead to same output. This property is also satisfied by | ||
/// CRH trait implementors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also require one-way-ness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry if I remembered incorrectly, but isn't Preimage resistance => one-way-ness?
For the record, in |
Description
Add Cryptographic hash function trait, and proof of work.
closes: #74
blocking: arkworks-rs/bcs#2 (currently is a private repo)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
Pending
section inCHANGELOG.md
Files changed
in the Github PR explorer