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
new treemath and encryption test vectors #60
Conversation
I think the "Commit & Transcript" miss a signature public key, because it was moved out of the credential. Right know we can't check the signature of the Commit. |
Indeed, there are no signatures here. Encryption is only about the symmetric part. I'll get to the others as well. But feel free to start updating the other test vectors as well. |
In tree math, shouldn't there be only one |
Is there a reason why the vectors are so long? Wouldn't it be enough to check say trees for up to 32 leaves and encryption for only one generation (say the 15th)? |
There could indeed be less values... I just took what I had in openmls.
Hm, I think it's correct unless I misunderstand your question. There is only one root for each tree. Maybe the description isn't great... |
I like it!
We are now using complete binary trees. But In any case, my point is that in the current test we test computing the root of a tree with say |
Yes.
Yeah, that's duplicated. But it's cheap to do so I don't mind 🤷🏻 But I'd be happy to change the test vector definition if you have a better alternative. |
(This is my last attempt, it's not a big deal anyway :) ) My alternative would be to have it
where |
Ah, yes of course. That makes sense. I added that change to this PR. |
The treemath and encryption test vectors can stay as they are.
I updated some wording and added new test vectors from OpenMLS for this.
Lets make sure we agree on the test vectors before merging.
Note that these are generated from an openmls branch that is not merged yet (openmls/openmls#1236).