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

Add mina-contracts package #389

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

SpaceManiac
Copy link
Contributor

@SpaceManiac SpaceManiac commented Jun 26, 2024

Adds @paima/mina-delegation:

  • delegate.ts includes the DelegationOrder, DelegationOrderProgram, and DelegationOrderProof types that can be used as a common basis for Ethereum wallets to sign that a Mina address is generally authorized to act on their behalf, for use in ZK programs and contracts.
  • The message under signature is a total of 74 bytes:
    1. The Ethereum standard prefix \x19Ethereum Signed Message:\n
    2. The Ethereum length-prefix 48
    3. The prefix used by other Paima Engine delegations DELEGATE-WALLET:
    4. The Mina public key packed into 32 bytes
  • Precaching the o1js circuit as part of the build is excluded in part due to its complexity, but mainly because the cached circuit amounts to 700 MB, which is unreasonably large for an NPM package.

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.

1 participant