tinyETH #63
ofemeteng
started this conversation in
Show and tell
tinyETH
#63
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Show and tell project type
Builder Bounty Submission
Github Repo Link
https://github.com/ofemeteng/tinyETH
Video Walkthough Link
https://www.youtube.com/watch?v=HP6Ga7Hji8E
Project Description
tinyETH is a secure comparison demo of a user's guess of the current ETH price with the actual ETH price obtained from the etherscan.io API. It showcases the integration of a third-party API using MPC to compare the response and the user input privately.
tinyETH is inspired by the tinybin demo from the Nillion team. If the user's guess is within +1% or -1% of the actual ETH price, then the result of the comparison will show that the user's guess was correct. If the guess is outside the stated +1% or -1% threshold, then the output will show that the user's guess is incorrect.
What problems does your project solve? How does it preserve privacy for users?
The tinyETH project solves the problem of secure comparison of an input to a target without revealing the values to those involved in the computation as it utilizes Multi-Party Computation (MPC). Only the final result or output of the comparison is publicly known.
The input and target are first encoded according to the workflow signature, and every participating node partakes in the preprocessing phase and broadcasts the masked values. Then each node computes locally its share of the computation.
The final result of the computation, in this case the output of the comparison, is obtained by summing the shares of the individual results from the participating nodes.
How does the project use Nillion? Describe and link to any Nada programs
The tinyETH project uses the Nillion tinympc library, which is a Python implementation of secure MPC for evaluating arithmetic sum-of-products expressions.
The tinyETH project particularly utilizes tinympc for the preprocessing phase, masking of factors, computation and broadcasting.
Is there anything else you want to share?
I found the Nillion documentation to be useful and comprehensive and I also liked the demo codebases. However, I will suggest that a part of the documentation should include an actual step-by-step guide for implementing MPC using Nada or the tinympc library that will show the details and code workflow for setting up the preprocessing phase to create shares, the non-interactive computation of masked factors and finally the reconstruction of the result through the summation of result shares received from nodes.
Optional - Link your project and team members' social handles
X - https://x.com/ofemetengE
Farcaster - https://warpcast.com/polkadot
Optional - Team ETH Address(es)
0xE1Db2BDcf9bED917Cb27B821fBac813e7C2E10d4
Beta Was this translation helpful? Give feedback.
All reactions