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

ge_double_scalarmult #16

Open
Syyn926 opened this issue Dec 18, 2019 · 0 comments
Open

ge_double_scalarmult #16

Syyn926 opened this issue Dec 18, 2019 · 0 comments

Comments

@Syyn926
Copy link

Syyn926 commented Dec 18, 2019

So I want to do a point multiplication on a Ed25519 curve and I used the function in the title because that's the only one that accepts a specific point input. I set my scalar to a and my point to A and b is a scalar of zeros. From my understanding of the b*B part of the equation should result with the point [0,1]. When this is added to my a*A, it should not have any effect on the point yet I'm seeing a a difference of 0x80 in the last byte of the encoded result when compared to another known good source.

On a side note, there's a ed25519.py library that handles a case for a zero scalar input which automatically returns [0,1] and I couldn't tell if this was happening in the above function. It makes sense the function wouldn't handle this edge case scenario of a zero scalar input because that doesn't make sense in the verify portion of EdDSA, yet I'm trying to leverage this function to perform a point multiplication with a scalar and a specified point.

Any help with this issue would be greatly appreciated. My understanding of ed25519 curves is minimal, but I'm trying to perform a Diffie-Hellman key exchange using the Ed25519 curve.

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