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

Blockchain specific types #43

Open
Mikerah opened this issue Jun 9, 2022 · 1 comment
Open

Blockchain specific types #43

Mikerah opened this issue Jun 9, 2022 · 1 comment

Comments

@Mikerah
Copy link
Contributor

Mikerah commented Jun 9, 2022

So far, we have focused mainly types that are mainly relevant for MPC computation. However, in going through our example applications, it's becoming clear that we may want a few blockchain specific types as well. These will mainly aid in reading and writing from the MPC nodes for an application and help with keeping on-chain data in sync with what's stored by the MPC nodes.

A tenative list of types to support:

  • Addresses: Pretty self-explanatory.
  • Contract IDs: Having some form of IDs for the contracts makes sense in that the nodes will always know which contract a particular set of computations are for. Might possibly just br subsumed by the Address type
  • Notes: in many applications, we will want to shield basic on-chain data (amounts, addresses). As such, these won't be in an easily accessible form for the user. Common designs rely on notes that only the user has in order to prove ownership of some data in zero-knowledge. Obviously, we can't store the notes directly with the MPC nodes.
@th4s
Copy link
Contributor

th4s commented Jun 10, 2022

Yup, this is a good idea. Probably helpful to have a look at other rust libraries to get an inspiration for all the types which might be interesting in blockchain context.

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

No branches or pull requests

2 participants