Skip to content
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

POST /hashed #59

Merged
merged 3 commits into from
Mar 4, 2024
Merged

POST /hashed #59

merged 3 commits into from
Mar 4, 2024

Conversation

cryptoquick
Copy link
Member

No description provided.

@cryptoquick cryptoquick requested a review from rustchain64 March 4, 2024 01:17
.route("/hashed/:pk", post(post_file_hashed))
.route("/pubkeyed/:pk", post(post_file_pubkeyed))
.route("/named/:pk/:name", post(post_file_named))
.route("/hashed/:pk/:blake3_hash", get(get_file))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here it seems "get(get_file))" retrieves both "hashed" and "pubkeyed"

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct, they're both hashes

@rustchain64 rustchain64 merged commit b951425 into HB/improvements Mar 4, 2024
3 checks passed
@rustchain64 rustchain64 deleted the HB/hashed branch March 4, 2024 02:09
github-merge-queue bot pushed a commit that referenced this pull request Mar 5, 2024
* Formatting improvements. Update crates. Change write_file to use shared secret.

* Update to Carbonado 0.4.0.

* Go back to deriving a pk for every file access.

* POST /hashed (#59)

* Add Carbonado hashed endpoint.

* Update crates

* Run CI on every push.

* Refactor parity_npub.

* Fix Blake3 hashing order bug

* Cleanup
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