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

[TASK] Smart Contract Work for Delegatable Proof System #266

Open
6 tasks
akileshtangella opened this issue Mar 6, 2023 · 0 comments
Open
6 tasks

[TASK] Smart Contract Work for Delegatable Proof System #266

akileshtangella opened this issue Mar 6, 2023 · 0 comments
Assignees

Comments

@akileshtangella
Copy link
Contributor

akileshtangella commented Mar 6, 2023

Related to #288

Smart Contract Work

  • In the transact function:
  1. keccak256 hash the transact proof.
  2. Verify signature of the hash against $ak_{\alpha}$ (which is a public input to the transact proof) in Solidity before checking transact proof.

Potentially use this for verifying EdDSA sig in Solidity: https://github.com/HarryR/ethsnarks/blob/master/contracts/EdDSA.sol

TS Classes/Tests

  • Sign proof with transactor's $sk_{\alpha}$ in transact class fn. Pass that signature into smart contract call.
  • Negative test: If not signed with transactor's $sk_{\alpha}$ should fail to verify sig.
  • Negative test: If wrong $ak_{\alpha}$ in public input should fail to verify sig.
  • Negative test: If wrong data signed (not proof hash), should fail to verify sig.
  • Make sure existing tests for transact still work.
@akileshtangella akileshtangella self-assigned this Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Planning 🗺️
Development

No branches or pull requests

1 participant