-
-
Notifications
You must be signed in to change notification settings - Fork 672
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
Add Schnorr signature #93
Conversation
const char *k_hex; | ||
const char *s_hex; | ||
const char *r_hex; | ||
} test_cases[] = { |
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.
Where do these test vectors come from?
If these are your own, can you please also add some that are not your own? Simple google search for "schnorr test vectors" returns some results such as:
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.
I got test vectors from results this function.
Squashed and merged in 8114e0f Thanks! |
Hey @armatusmiles I have reverted the commit and removed the Schnorr implementation from master. @onvej-sl found out the Schnorr implementation you provided is insecure and he will tell you more. |
@prusnak Hello. Thank you for feedback. I’m sorry. |
could you please share more details about the implementation? I believe @armatusmiles implemented Zilliqa scheme (https://github.com/Zilliqa/Zilliqa/blob/master/src/libCrypto/Schnorr.cpp), which is audited by NCC group (Zilliqa team tells us) Thanks |
Hi @hewigovens, I found the implementation insecure for the following reasons:
|
@onvej-sl Thanks for your elaborations, for |
Hi @onvej-sl for In Zilliqa, though, we also check for |
@onvej-sl for Here is the equivalent code in Zilliqa: If we put this code in place, would it then be OK to keep the two |
They are not. What if
It won't solve the problem. The problem is that the
What is the reason you prefer |
Thanks, we will push it to upstream later |
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
* add zilliqa schnorr tests * Fix trezor/trezor-firmware#93 (comment) * Fix tabs
No description provided.