-
Notifications
You must be signed in to change notification settings - Fork 315
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
Base DAG should have a unique topological ordering #744
Comments
From https://web.stanford.edu/~bfisch/porep_short.pdf:
Meaning that when the paper talks about a degree ( |
Hmmmm. So if I understand, that means that we would now (considering our current graph and numbers) have 6 DRG parents in addition to the 8 expansion parents. I think you are proposing leaving everything as it is and just adding an extra parent in addition to the 5 already generated (while leaving the value of I would need to look more closely, but I think this might require explicitly allocating a larger Another question is how this impacts KDF generation. In the ZigZag case, we could (maybe?) not increase the total number of parents expected — since we are (almost?) always adding some amount of padding. But this doesn't apply to a plan DrgPoRep. So we would then need to handle bookkeeping for the extra parent in the KDF, etc. Because of all that, it seems like maybe it would be better to just say that for us @nicola Your thoughts would be useful. @schomatis Please ask more specific questions if I didn't address your original or wasn't clear. I haven't had time to think this through completely but wanted to give an initial response while I have time. |
Good point, didn't think about all those implications, we should handle this as explicitly as possible (maybe only in the CLI we can hide this detail). My original intention was to match the paper expectations, but this will need more clarification. |
By looking at the PoRep Short paper the numbers we run were for 1 and 5. This implies that the direct predecessor is not being accounted for (otherwise the one with 1 would have degree one - not great). Hence I believe that we might have to add one more parent. We should ping @ben-a-fisch on this one. |
My previous reading was that in order to have Since we now have a growing team of ZigZag theory experts, can we get a reading on this from one of @lucaniz @irenegiacomelli @nikkolasg ? |
I think this has been resolved. A historical note on naming may help make most sense of the situation. It's clear what needs to happen, and we can now make new naming decisions corresponding to that. The paper has a parameter, Generally, we have three options.
Of these options, 1 seems preferable, since it will minimize the number of changes to planned/published values and to defaults when calling benchmarks, etc. As part of the changeset implementing this work, we should also make sure naming in benchmark examples is consistent with whatever we end up with. (The renaming portion of that work may already have been done.) |
Ok, going with number 1 (modulo the benchmark modifications that should be handled later). |
@schomatis Is this blocked? If not, can you implement soon? We have a lot of big changes coming down up, so it would be good to take care of known fixes like this first so we don't have to bundle them with the new. |
Unblocked, will implement soon. |
This is fixed as far as I know |
Add edges
(i, i+1)
for alli < N-1
for theparents
of the baseGraph
. Discount that from the base degree, so we'll now have only 4 parents from bucket sampling.Not very clear in Algorithm 1 of the original paper but we do know it has to be so since its code is based on Argon2i.
(edit: once resolved we'll also need to update the spec which at this time is just a copy of the code here)
PR: #843.
The text was updated successfully, but these errors were encountered: