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

Mina-signer: sign account updates #705

Merged
merged 7 commits into from
Jan 30, 2023

Conversation

mitschabaude
Copy link
Member

@mitschabaude mitschabaude commented Jan 19, 2023

closes MinaProtocol/mina#12014

  • signs other account updates than the fee payer, if they have the same public key and need a signature
  • refactors the mina-signer/zkapp unit test to hit the case of signing multiple account updates
    • compares result with snarkyjs signing output
    • implements Transaction.fromJSON which was useful here and recently requested as a feature

@mitschabaude mitschabaude marked this pull request as draft January 19, 2023 20:42
@mitschabaude mitschabaude changed the title Mina-signer: sign account udpates Mina-signer: sign account updates Jan 30, 2023
@mitschabaude mitschabaude marked this pull request as ready for review January 30, 2023 18:01
},
privateKey
);
}).toThrow('Fee must be greater than');
Copy link
Member

@Trivo25 Trivo25 Jan 30, 2023

Choose a reason for hiding this comment

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

nit to the error that signZkappCommand throws: I think it would be good to explicitly differentiate between the two cases - no fee specified at all and fee not high enough

@mitschabaude mitschabaude merged commit 756733f into main Jan 30, 2023
@mitschabaude mitschabaude deleted the mina-signer/sign-account-updates branch January 30, 2023 20:44
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.

Allow Mina Signer(Client SDK) to sign account updates
2 participants