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
The message is stored in LocalParty as a bit.Int and then passed into EdDSA signing process.
In round_3, it was used as bytes:
h := sha512.New()
h.Reset()
h.Write(encodedR[:])
h.Write(encodedPubKey[:])
h.Write(round.temp.m.Bytes())
The problem is that the returned byte slice from big.Int.Bytes() represents the minimal-length binary form of the integer and does not include any leading zero bytes. So, if the message is leading with 0x00 the result SignatureData will be incorrect.
Using big.Int.FillBytes() or storing message as raw byte slice should be better?
The text was updated successfully, but these errors were encountered:
The message is stored in
LocalParty
as abit.Int
and then passed into EdDSA signing process.In round_3, it was used as bytes:
The problem is that the returned byte slice from big.Int.Bytes() represents the minimal-length binary form of the integer and does not include any leading zero bytes. So, if the message is leading with 0x00 the result SignatureData will be incorrect.
Using big.Int.FillBytes() or storing message as raw byte slice should be better?
The text was updated successfully, but these errors were encountered: