-
Notifications
You must be signed in to change notification settings - Fork 6
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
Hide discrete logarithm k such that H = kG #6
Conversation
src/LSAG.hs
Outdated
-- h = [H(L)] | ||
h = generateH g curve0 (show $ hashPubKeys curve0 pubKeys) | ||
|
||
-- h = ECC.pointBaseMul curve0 (hashPubKeys curve0 pubKeys) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't need this anymore.
src/LSAG.hs
Outdated
generateH :: ECC.Point -> ECC.Curve -> [Char] -> ECC.Point | ||
generateH g curve extra = | ||
case yM of | ||
Nothing -> generateH g curve (toS $ '1':extra) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of this magic '1'
character is a little odd. What's the context on this choice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x
is derived from the hash. The algorithm needs to iterate to generate a new x
when there isn't a y
s.t. y = x^3 + 7 mod p
. We need to deterministically create a new hash from the existing hash. 1
is an arbitrary change to the existing hash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I see. This makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any suggestions to make it more sensible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a name to the magic number
Address issue #5