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

chore: refactor h || s || e logic to just s || e #52

Closed
erhant opened this issue Jun 20, 2024 · 0 comments · Fixed by #51
Closed

chore: refactor h || s || e logic to just s || e #52

erhant opened this issue Jun 20, 2024 · 0 comments · Fixed by #51
Assignees
Labels
refactor This needs refactoring

Comments

@erhant
Copy link
Member

erhant commented Jun 20, 2024

Given a result & task-id tuple $(y, t)$ with node key-pair $(k_\text{priv}, k_\text{pub})$ and task key-pair $(d_\text{priv}, d_\text{pub})$ it suffices to simply do:

$$ \begin{align*} s \gets &\text{Sign}(k_\text{priv}, t || y) \\ e \gets &\text{Encrypt}(d_\text{pub}, y) \end{align*} $$

The admin node will verify as follows:

$$ \begin{align*} y \gets &\text{Decrypt}(d_\text{priv}, e) \\ &\text{Verify}(k_\text{pub}, s, t || y) \end{align*} $$

@erhant erhant added the refactor This needs refactoring label Jun 20, 2024
@erhant erhant self-assigned this Jun 20, 2024
@erhant erhant mentioned this issue Jun 20, 2024
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor This needs refactoring
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant