Skip to content
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

Int Representation for Hashing #10

Open
nickboucher opened this issue Feb 24, 2020 · 0 comments
Open

Int Representation for Hashing #10

nickboucher opened this issue Feb 24, 2020 · 0 comments

Comments

@nickboucher
Copy link

It is unclear from the specification the format in which numbers are to be encoded for the purpose of calculating the extended base hash. For example, a public key for an election trustee could be encoded as:

  • a null-terminated ASCII string
  • a little-endian binary number with padding to the nearest byte boundary
  • a little-endian binary number with no padding
  • a little-endian two's complement-encoded number with padding to the nearest byte boundary
  • a little-endian two's complement-encoded number with no padding
  • a big-endian binary number with padding to the nearest byte boundary
  • a big-endian binary number with no padding
  • a big-endian two's complement-encoded number with padding to the nearest byte boundary
  • a big-endian two's complement-encoded number with no padding

Additionally, it should be made explicit the order in which trustee public keys are included in the base hash calculation. Presumably, the order is inherited from the order in which trustee public keys are enumerated in the json-serialized representation of the election. However, it is unsafe to assume this and should be made explicit for those constructing verifiers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant