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

EcVrfSigner trait support consumable preproofs #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

burdges
Copy link
Collaborator

@burdges burdges commented Nov 28, 2023

We make the EcVrfSinger trait consume self instead of borrow &self, so then in future it can work on preprepared proof types, where the proof should be consumed and destroyed once used.

We have a problem if we want to do this with the proofs generated elsewhere though: How do you ensure deletion of something serializable? We'd maybe compute the blinding factor using a key exchange run before the proof is generated, so then the signer device enforces the limit.

We maybe do not care though since parity vault always runs on fairly hefty devises, like androids or iphones, so then this change alone permits a direct implementation of session types that prevent reuse. It's only maybe kampela that's problematic here.

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.

1 participant