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

How Does MPC Work? #244

Open
xluffy opened this issue Apr 24, 2024 · 0 comments
Open

How Does MPC Work? #244

xluffy opened this issue Apr 24, 2024 · 0 comments

Comments

@xluffy
Copy link
Owner

xluffy commented Apr 24, 2024

Sue takes her salary of $120,000 and adds a random and relatively large number to it, say $875,500. This gives a total of $995,500.

Sue shares this newly computed number with Pam. This number is meaningless to Pam, as she doesn’t know what positive or negative random value Sue used to arrive at it.

Pam then adds her salary of $105,000 to the $995,500 to compute a total of $1,100,500.

Pam shares that total with Bob, who again, has no concept of what values Sue or Pam have used to gain this figure.

Bob then adds his salary of $96,300 to this amount and shares the final total of $1,196,800 with Sue.

Sue can then subtract her secret and randomly generated number of $875,500.

This gives a net value of $321,300.

This can be divided into three to calculate the average of the three salaries, which is $107,100.

None of the three “parties” in this scenario learn anything about the other’s individual salary. The only thing they learn is the average and can compare their own salary against it.

Not only did they not have to share their private data with each other, they also didn’t have to share it with anyone else.

Using distributed multi-party computation with no third parties or intermediaries involved, means total security and privacy are guaranteed.

This same concept of secret sharing and distributed computation can be implemented in blockchain technology to protect secrets such as a private key to a crypto wallet.

Before we look at how MPC wallets work, we need to understand what a crypto wallet is and why the private key is so important.

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

1 participant