Skip to content

lift_x returns a point, not a tuple#39

Closed
sipa wants to merge 3 commits intobip-schnorrfrom
bip-schnorr-patch
Closed

lift_x returns a point, not a tuple#39
sipa wants to merge 3 commits intobip-schnorrfrom
bip-schnorr-patch

Conversation

@sipa
Copy link
Copy Markdown
Owner

@sipa sipa commented May 6, 2019

No description provided.

@sipa
Copy link
Copy Markdown
Owner Author

sipa commented May 6, 2019

@jonasnick @real-or-random

@real-or-random
Copy link
Copy Markdown

I agree, that's somewhat weird.

  • Maybe we should then also have an explicit Let P = (r, y). line in lift_x to make the construction of a point more explicit, and then return P in the end.
  • Your suggestion somehow drops the information that -P is computed by negating y. Maybe
P = lift_x( ... )
If ...
    P' = (x(P), -y(P))
    Return P'
Return P

@sipa
Copy link
Copy Markdown
Owner Author

sipa commented May 6, 2019

Is that necessary? We do plenty of EC operations already, and EC addition and multiplication aren't explained at that level of detail either.

@sipa sipa force-pushed the bip-schnorr branch 2 times, most recently from 2546550 to 6733024 Compare May 6, 2019 17:46
@real-or-random
Copy link
Copy Markdown

Agreed.
(Now GitHub says you ant to merge 62 commit, maybe you screwed up your branch or there is again something wrong with GitHub here. No idea.).

@real-or-random
Copy link
Copy Markdown

Ah yeah, is it possible that you force-pushed bip-schnorr instead of bip-schnorr-patch? :D

@sipa sipa force-pushed the bip-schnorr-patch branch from c0584dd to 7472c79 Compare May 6, 2019 19:20
@sipa
Copy link
Copy Markdown
Owner Author

sipa commented May 6, 2019

Rebased.

@real-or-random
Copy link
Copy Markdown

ACK

@jnewbery
Copy link
Copy Markdown

ACK 7472c79

explaining lift_x(x), x(P)=x, there is not r here. though usually it is the r part of the signature.
@sipa
Copy link
Copy Markdown
Owner Author

sipa commented Aug 21, 2019

This doesn't really apply anymore after #55, but lift_x is now still defined as something returning a tuple, which is wrong.

@sipa
Copy link
Copy Markdown
Owner Author

sipa commented Aug 21, 2019

Addressing this in #58.

@sipa sipa closed this Aug 21, 2019
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

Successfully merging this pull request may close these issues.

4 participants