You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This way, the computation does not rely on encoding. Since it decouples encoding, it also makes it possible to use other encodings such as base64 and still get the same parent hashes.
The text was updated successfully, but these errors were encountered:
Yes it is indeed a very breaking change, since it also results in different hashes. Maybe it would be better to make it optional and introduce it as a non-breaking change?
Great, it seems fine for 1.0.0, no need to introduce complexity in the current version. In the meantime I have a branch that does it that I can use for now. Let me know if you need help for 1.0.0.
The current implementation stores the hashes as hexadecimal strings and computes parent hashes doing something like this:
I'm not sure if this is a standard, but it means that the parent hash is encoding dependent.
To me, it makes more sense to use buffers and concatenate the binary data directly:
This way, the computation does not rely on encoding. Since it decouples encoding, it also makes it possible to use other encodings such as base64 and still get the same parent hashes.
The text was updated successfully, but these errors were encountered: