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

Feat/signature verify #269

Merged
3 commits merged into from
Sep 1, 2023
Merged

Feat/signature verify #269

3 commits merged into from
Sep 1, 2023

Conversation

collinc97
Copy link
Contributor

Overview

  • adds documentation for sign.verify opcode in Aleo instructions.
  • adds documentation for signature::verify and s.verify operations in Leo.

Example Aleo instructions code

sign.verify sign069ju4e8s66unu25celqycvsv3k9chdyz4n4sy62tx6wxj0u25vqp58hgu9hwyqc63qzxvjwesf2wz0krcvvw9kd9x0rsk4lwqn2acqhp9v0pdkhx6gvkanuuwratqmxa3du7l43c05253hhed9eg6ppzzfnjt06fpzp6msekdjxd36smjltndmxjndvv9x2uecsgngcwsc2qkns4afd r1 r2 into r3;

Example Leo code

    transition verify_field(s: signature, a: address, v: field) {
        let first: bool = signature::verify(s, a, v);
        let second: bool = s.verify(a, v);
        assert_eq(first, second);
    }

Linked Issues

Closes #268

@collinc97 collinc97 requested a review from a team September 1, 2023 20:50
@ghost
Copy link

ghost commented Sep 1, 2023

LGTM.

@ghost ghost self-requested a review September 1, 2023 21:25
@ghost ghost merged commit ae54004 into master Sep 1, 2023
@ghost ghost deleted the feat/signature-verify branch September 1, 2023 21:26
This pull request was closed.
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.

Add docs for signature type and signature::verify in Leo
1 participant