-
Notifications
You must be signed in to change notification settings - Fork 472
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
AVM: opcode for ed25519 verify of arbitrary messages. #3218
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3218 +/- ##
==========================================
- Coverage 47.43% 47.42% -0.02%
==========================================
Files 369 369
Lines 59494 59507 +13
==========================================
- Hits 28221 28219 -2
- Misses 27984 28000 +16
+ Partials 3289 3288 -1
Continue to review full report at Codecov.
|
@jannotti could you hold off with this PR until after the batch verification get merged in ? There are some verification semantics that would be better off be uniform. |
Sure, it's not time critical (belongs in AVM 1.1 and is gated by TEAL 6 in vFuture). But how can batch verification impact this? This is only for signature checking inside of AVM code. As long as there exists a crypto.SignatureVerifier.VerifyBytes type function (for verifying a single signature), this code will be unchanged. |
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 code looks good. Not sure about _bare
naming, and the use case (remembering ed25519verify
has such specific behavior because of avoiding some kind of misuses).
Now that we have the |
d25367d
to
e08b2ff
Compare
Please consider an alternate to "bare" which may be more descriptive, such as "bytes" or "data". |
@algorandskiy regarding misuse of this opcode, how and where do we inform developers of these risks and proper mitigation? OpCode description and/or Dev Portal docs? |
e08b2ff
to
88a98d6
Compare
88a98d6
to
a8c453f
Compare
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.
Code changes look good.
My only suggestion is that it would be nice to add a note in opDocExtras
in either/both of the ed25519 opcode descriptions to describe how they differ, but that is not essential.
Brings ed25519 verify to feature parity with newly added ecdsa opcodes. Allows verification of any message, rather than requiring "program" and hash(code) prefix.
Same sort of testing as ed25519verify