-
Notifications
You must be signed in to change notification settings - Fork 30
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
Create Test Vectors #177
Comments
Would you be interested in putting a maximum length on the treeNonce for compatibility? |
Hmm, I wonder if we could hash the TreeID along with extra context onto the
32 byte nonce?
…On Wed, Jun 21, 2017 at 5:16 PM Vu Quoc Huy ***@***.***> wrote:
@gdbelvin <https://github.com/gdbelvin>
Would you be interested in putting a maximum length on the treeNonce for
compatibility?
In our implementation, it is a 32-byte array. Do you have any idea how
should the interface be for compatibility?
/cc @masomel <https://github.com/masomel> @arlolra
<https://github.com/arlolra> @liamsi <https://github.com/liamsi>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#177 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMHTtRHLPdcpYTDqRch5VR4HbqaUjtIks5sGUHbgaJpZM4N-IQH>
.
|
After some more thought, I'd love to jump on a call to discuss this. |
As far as I remember this was discussed quite a while ago and we've decided to reuse HashSizeByte for simplicity (not introducing another constant) and some extra-bits of security. Another related reason was that we've decided to always hash the output of the system's randomness (and we use a 32-byte hash for that). But I agree that a 64-bit tree-nonce should be sufficient. |
I think I don't want to let users (the developer/operator) supply the tree ID. As stated somewhere, maintaining the uniqueness of the counter (in this case the map/tree ID) is nontrivial. |
Trillian (the distributed merkle tree database) generates the treeID behind the scenes - the developers don't get to pick it. As for maintaining uniqueness of the nonce, 64 bits is enough to ensure uniqueness for up to 2^32 servers. |
@c633 Currently, the |
Thanks for the explanation! Let's see what others say. |
A set of test vectors for
Would be helpful for assessing cross-project and cross-language compatibility.
I've begun doing this in google/keytransparency#613
The text was updated successfully, but these errors were encountered: