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

feat: add signature verification to node response #105

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

jorgeantonio21
Copy link
Contributor

No description provided.

@jorgeantonio21 jorgeantonio21 added the enhancement New feature or request label Jan 1, 2025
@jorgeantonio21 jorgeantonio21 requested a review from Cifko January 1, 2025 12:08
@jorgeantonio21 jorgeantonio21 self-assigned this Jan 1, 2025
@maschad maschad self-assigned this Feb 10, 2025
@maschad maschad marked this pull request as ready for review February 10, 2025 18:35
@@ -332,6 +335,7 @@ pub async fn confidential_image_generations_create(
)
)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::significant_drop_tightening)]
Copy link
Member

Choose a reason for hiding this comment

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

I've allowed this as refactoring would be quite substantial, see #210

Copy link
Contributor Author

@jorgeantonio21 jorgeantonio21 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -463,6 +462,11 @@ impl Stream for Streamer {
}
} else if let Some(usage) = chunk.get(USAGE) {
self.status = StreamStatus::Completed;
let _ = {
let guard = self.sui.blocking_read();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

How safe is it to have a blocking_read in an async stream ?

Another possibility is poll::pending and add logic to the poll next method to handle when a signature is ready, but that's a bit too much of hassle.

Copy link
Member

Choose a reason for hiding this comment

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

That's a good point, we actually try caching the keystore when creating the Streamer to avoid locking during stream processing, wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants