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

Support Anoma stdlib API verifyDetached #2785

Merged
merged 6 commits into from
May 23, 2024
Merged

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented May 16, 2024

This PR adds support foranomaVerifyDetached stdlib API via a Juvix builtin.

It has signature:

builtin anoma-verify-detached
axiom anomaVerifyDetached : {A : Type}
   --- signature
  -> Nat 
   --- message
  -> A
   --- public key
  -> Nat
 -> Bool;

The ed25519 library is used in the evaluator becuase Anoma uses ed25519 signatures (https://hexdocs.pm/enacl/enacl.html).

@paulcadman paulcadman added this to the 0.6.2 milestone May 16, 2024
@paulcadman paulcadman self-assigned this May 16, 2024
@paulcadman paulcadman force-pushed the anoma-verify-detached branch 2 times, most recently from a78b9ad to 0e8e4cb Compare May 17, 2024 19:54
@paulcadman paulcadman force-pushed the anoma-verify-detached branch from 4842a1c to e8c3f7a Compare May 23, 2024 11:21
@paulcadman paulcadman marked this pull request as ready for review May 23, 2024 11:22
@paulcadman paulcadman requested a review from janmasrovira May 23, 2024 11:22
src/Juvix/Compiler/Nockma/Encoding/ByteString.hs Outdated Show resolved Hide resolved
src/Juvix/Compiler/Core/Evaluator.hs Outdated Show resolved Hide resolved
src/Juvix/Compiler/Core/Evaluator.hs Outdated Show resolved Hide resolved
@paulcadman paulcadman merged commit 830bf04 into main May 23, 2024
4 checks passed
@paulcadman paulcadman deleted the anoma-verify-detached branch May 23, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants