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

Implement ECDSA builtin #151

Merged
merged 18 commits into from
Nov 14, 2023
Merged

Implement ECDSA builtin #151

merged 18 commits into from
Nov 14, 2023

Conversation

jmjac
Copy link
Contributor

@jmjac jmjac commented Nov 3, 2023

Resolves #145. It seems that ecdsa builtin takes the X part of the public key and hash of the msg. Builtin should recover Y, check if it's on the curve and then verify the signature. The part that is missing is when addSignature should be called to put the sig in the memory

@jmjac jmjac self-assigned this Nov 3, 2023
@jmjac
Copy link
Contributor Author

jmjac commented Nov 9, 2023

Because VM doesn't yet support running hints the integration test will fail

@jmjac jmjac marked this pull request as ready for review November 9, 2023 15:17
Copy link
Contributor

@rodrigo-pino rodrigo-pino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Minor optimization and style comments

pkg/vm/builtins/ecdsa.go Outdated Show resolved Hide resolved
pkg/vm/builtins/ecdsa.go Outdated Show resolved Hide resolved
pkg/vm/builtins/ecdsa.go Outdated Show resolved Hide resolved
pkg/vm/builtins/ecdsa.go Outdated Show resolved Hide resolved
pkg/vm/builtins/ecdsa.go Outdated Show resolved Hide resolved
pkg/vm/builtins/ecdsa.go Outdated Show resolved Hide resolved
pkg/vm/builtins/ecdsa.go Outdated Show resolved Hide resolved
pkg/vm/builtins/ecdsa.go Outdated Show resolved Hide resolved
pkg/vm/builtins/ecdsa.go Outdated Show resolved Hide resolved
pkg/vm/builtins/ecdsa.go Show resolved Hide resolved
Copy link
Contributor

@rodrigo-pino rodrigo-pino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!!!

@rodrigo-pino rodrigo-pino merged commit d3aa728 into main Nov 14, 2023
4 checks passed
@rodrigo-pino rodrigo-pino deleted the feat-ecdsa-builtin branch November 14, 2023 13:52
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.

ECDSA
2 participants