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
Whenever we represent a digest as a hex string, we should encode it in a big-endian way to make small1 digest values have leading zeros.
The behavior of the functions to_hex, try_from_hex, and the Ord implementation should be consistent. The conversion to and from BigUint also needs to agree.
Note that we do not necessarily have to change the encoding of other values. I am only concerned with the hex string representation of Digest. e.g. BFieldElement or Digest is serialized is not of a concern, I think.
Footnotes
Small is well-defined for Digest as it implements the Ord trait. ↩
The text was updated successfully, but these errors were encountered:
Whenever we represent a digest as a hex string, we should encode it in a big-endian way to make small1 digest values have leading zeros.
The behavior of the functions
to_hex
,try_from_hex
, and theOrd
implementation should be consistent. The conversion to and fromBigUint
also needs to agree.Note that we do not necessarily have to change the encoding of other values. I am only concerned with the hex string representation of
Digest
. e.g.BFieldElement
orDigest
is serialized is not of a concern, I think.Footnotes
Small is well-defined for
Digest
as it implements theOrd
trait. ↩The text was updated successfully, but these errors were encountered: