Skip to content

Build framework for file challenge #2175

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

Merged
merged 9 commits into from
Mar 8, 2025
Merged

Conversation

NikhilSinha1
Copy link
Contributor

Summary

cog is going to have to be able to validate that it knows a certain file exists. This is going to be implemented as a file challenge where the server tells cog to provide a hash for a range of bytes in a certain file with a certain salt. Therefore, cog needs the capability to hash a file with a salt when asked.

Test Plan

Unit tests added to verify functionality

Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
@NikhilSinha1 NikhilSinha1 marked this pull request as ready for review March 3, 2025 20:05
…lenge

Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
…lenge

Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
@NikhilSinha1 NikhilSinha1 merged commit 663c375 into main Mar 8, 2025
21 checks passed
@NikhilSinha1 NikhilSinha1 deleted the nikhil/file-challenge branch March 8, 2025 03:21
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.

3 participants