-
Notifications
You must be signed in to change notification settings - Fork 8
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
Ability to submit lock without revealing the time it can be decryted #5
Comments
If you are eager to do it yourself, things are already there in some form:
Like this, you won't have to get the round number inserted into the format already you just don't include it. |
It should actually be as simple as not including the round number here (maybe put -1 instead? ): tlock-js/src/drand/timelock-encrypter.ts Line 20 in 4eb726a
And then changing the decryption to specify the round number manually instead of parsing it: tlock-js/src/drand/timelock-decrypter.ts Lines 19 to 25 in 4eb726a
|
Thanks @nikkolasg and @AnomalRoil for your input I created this PR for it : #7 I tried to minimize breaking changes but due to optional args I had to make some, |
In my use case, the encryptor do not want the decryptor to know when decryption is possible. This is because in my use case, the timing needs to remains secret.
To avoid the decryptor to check the decryption at every epoch, one idea is that encryptor will provide the decryptor the minutes (and seconds) to check but will not tell the day/hour.
See conversation slack :
If tlock-js could left out the decrypting time, application could provide their own mechanism
The text was updated successfully, but these errors were encountered: