[doc] improve header file docs#7
Conversation
|
wow. this is amazing, it'll take some time to have a quick review of this, but you really also filled in the blanks, not only looked at what was already there, and it seems you dug deep and quite understood what is happening. what do you like? hugs? beers? cake? i'm happy to serve any combination of these :)
mostly everything in these .h files is public. with very few exceptions if at all. i'd have to check myself if there even is any exceptions.
that depends on the context. mostly it is the same, but in oprf.h which is a kind of bastard child of the original academic paper and the irtf rfc. N was used in the original paper to the unblinded output of the OPRF.
yes, almost. peers is all "parties" that will end up with a result of the dkg/mpc mul. shareholders is parties that hold shares, peers however do not need necessarily hold shares at the beginning of the protocol, but hopefully (unless they are cheaters?) at the end of the protocol. a dealer is a shareholder that deals out sharings of their own secret to the peers, not all shareholders need to be dealers only (2t+1 in the update protocol), and of course shareless peers cannot be dealers, as they have no secret to share... anyway i am very impressed, and would love to just have a chat with you about your thoughts, i'm sure you have more to say about this than "just" this documentation. wow. :) |
|
in terms of sets these are subsets of the previous:
|
|
i managed to review the PR. and did not find anything to comment on, small things like trailing whitespace, typedef and curly brackets on separate lines, minor typos (probably even mine) and the occasional deleted spdx header was what i found. however since i was reviewing it all i also found a bunch of other things, unrelated to this PR, which i also either addressed or marked with todos. all in all a tedious but very much necessary and even more useful chore. thank you very much for contributing and triggering me! |
@stef I didn't expect you to merge it yet 😅😅. I thought I left this PR in draft mode, so you couldn't do that. I was planning to do some more proofreading For the typedef and curly brackets on separate lines, a VS code formatter extension automatically did that 🤦♀️ |
I'll make another PR to fix these problems.
Okay, thanks for clarifying. I had replaced "shareholders" with peers assuming that peers always have shares. I can revert this.
I think it's fine to stick with
|
oh damn, i was not aware. well, no harm done i guess. you still could review stuff, if you want.
in the 5 commits preceding the merge i already fixed these. |
nah, it mostly makes sense, this only applies to the toprf-update protocol, where we indeed have peers without share and dealers.
yes. and in
actually, just yesterday someone opened this #8 - although afaics none of the functions to be hidden are included in the headers. |




This PR updates the header file comments. I filled in missing docs, made them more consistent across the files and reworded some things.
A few things to clarify:
nandNdifferent? I assumed they mean same thing (number of participants), and replaced all withn