Bias and Corruption Free Random Number Generation Through MPC

Bias and Corruption Free Random Number Generation Through MPC

Most may not know, but generating random numbers is hard. It is quite surprising because many people will think, “well, I can just come up with a random number off the top of my head!” However, randomly coming up with a number in your head, as well as other solutions to generate random numbers has fundamental flaws. And this is a big problem. Generating a fair unbiased random number is critical. In fact, random number generators are used everywhere.

The first place many would think of random numbers being useful is in games of chance. But would you be surprised if you knew that reading this article required the use of a random number generator? The website hosting this article is protected by a cryptographic key, which relies on generating a random set of values to be used for the encryption key.

Generating numbers at random is difficult. At a high level, there are two main issues with generating random numbers: predictability and bias/corruption issues.

Figure 1: RNG use cases are wide and varied

The predictability issue for RNG can be seen in both human- and machine-generated random numbers. For example, there is a famous problem called Benford’s Law that states any random number that someone thinks about has a 30% chance of starting with the number 1. When you want to have a chance of a number being generated to be equal in percentage, then this becomes a problem. If you use a computer program to generate random numbers, you are using a structured code. This means, after multiple iterations, someone can reverse engineer the numbers to find the pattern and predict what the next number could be, especially if the code being used is weak.

Figure 2: Predictability issues in RNG

From a bias and corruption perspective, the current systems can also be gamed to give favor to someone. For instance, if a set group of people decide they will choose random numbers and run through some function to compute a random number, one person may withhold showing their number until they see what the other people have chosen. Then, once he knows the numbers of the other participants, he can choose a number that would compute the random number to his favor. From a machine generated random numbers, since most systems have a central system that is generating the numbers, anyone who has control of that system could also manipulate the numbers being generated to their favor.

Figure 3: Bias and corruption issues in RNG

So how can we create a system where it is both unpredictable and bias free? Through MPC and Partisia Blockchain, we can solve both problems. Through smart contracts, players in the system generate a random number. This random number is then privatized and sent into the PBC blockchain. A zero-knowledge computation is done, in a similar way as done through secret sharing and through a computation, a random number is revealed.

Figure 4: Generating unbiased RNG that is incorruptible

Through combining multiple players and secret sharing, developers can create a system to come up with a random number that is free from bias, incorruptible and impossible to predict. And Partisia Blockchain’s smart contract language will afford developers to customize this solution to their specific requirements.

By creating a programming language that allows for developers to use MPC in a generic way, Partisia Blockchain Foundation has made the creation of applications that can harness the power of MPC for different use cases a possibility. Partisia has been at the forefront of providing private MPC solutions since 2008. And by layering this technology on top of an interoperable and scalable blockchain, Partisia Blockchain is now paving the way for anyone to create solutions that can balance privacy and transparency to build trust.

To learn more about different use cases or partner with us for solutions, please visit partisiablockchain.com, check out our Medium articlesdevelopment documentations or email us at build@partisiablockchain.com.

April 2023 update

April 2023 update

In April 2023, Partisia Blockchain had an eventful month with exciting updates and developments. We welcomed Bakyt Azimkanov as the new Head of Communications, signaling a commitment to expanding its reach and global presence. The Spotlight Solutions campaign continued to showcase our MPC technology capabilities in enhancing security and trust in the blockchain industry. Partisia Hivemind Huddles was launched, providing a space for the community and team to discuss a variety of topics and encourage collaboration. And we distributed the third quarter staking rewards. Finally, we also shared several tech updates, including the launch of the ETH price oracle on testnet and the enabling of multiple inputs in an MPC contract, among other updates.

New Head of Communications and Consensus 2023

Last month, we were thrilled to share some exciting organizational highlights. Partisia Blockchain Foundation recently welcomed Bakyt Azimkanov as our new Head of Communications, marking a significant addition to our leadership team. Bakyt is an accomplished professional with years of experience in strategic communications, branding, and press outreach programs across blockchain, financial services, and technology. Before joining us, he served as the Head of Communications at the Cardano Foundation. In his new role, he will oversee the development and implementation of a comprehensive communication strategy aimed at increasing awareness and driving adoption of our blockchain technology with cutting-edge multiparty computation capabilities.

We were delighted to have Bakyt, along with another excellent addition to Tiago Serôdio, Head of Community, attend Consensus 2023 in Austin, Texas, to represent Partisia Blockchain. Our team was thrilled to meet new and old friends in the community and engage in fruitful discussions about the future of blockchain technology. We had a great time networking and learning about the latest trends and innovations in the industry and were delighted to see so much enthusiasm for our MPC blockchain technology. If you missed us at the event, please reach out to us and let’s connect. We look forward to seeing you at the next blockchain event.

Solutions Spotlight and Hivemind Huddles

Throughout April, we continued to highlight our Solutions Spotlight campaign, including Secret Surveys, Preventing Front Running, Privatized Settlement Layers, and Data Sharing showcasing how Partisia Blockchain’s MPC technology can enhance security and trust in the blockchain industry. Our Head of Community, Tiago Serôdio, and Head of Developer Relations, Bruce Ahn, led a series of Spotlight AMAs and Q&As to educate our community on how our MPC technology can solve real world problems.

Last month, we were thrilled to launch Partisia Hivemind Huddles! Our inaugural monthly Hivemind Huddle took place on Friday, 21 April 2023, providing a space for our community and team to come together and discuss a variety of topics, while encouraging everyone to participate with their ideas and thoughts. This informal and welcoming forum is designed to promote open communication and collaboration. For the first session, we focused on answering recent questions from our community through an AMA format. For those who could not attend, we will hold a second session that will recap the first session and address any follow-up questions. Stay tuned for updates on the next Hivemind Huddle, and mark your calendars to join us for lively discussions and brainstorming sessions.

Ecosystem expansion and rewards distributions

Our ecosystem is growing! Our partners have been working hard and making progress building on our chain. Our sales team also has been busy and are working through more than 40 new leads and prospects. We have also seen higher interest in our blockchain and, as a result, have received multiple pitch ideas and we are busy working to get them onboarded and begin development. Please be on the lookout for our ecosystem spotlight in May for more details.

Third quarter rewards distributed. We have distributed our bootstrapping rewards for the third distribution quarter (December 2022 — February 2023). This is also our first distribution for our community stakers and more than 650,000 MPC tokens were distributed. Even better, we expect our next quarter rewards to be over one million! So, if you have not staked your tokens, please read this guide and put your tokens to work.

Tech updates: news in brief

  • We launched our ETH price oracle on testnet. This is an important milestone for our BYOC bridge function to keep updated with the latest ETH price. Mainnet to follow soon.
  • Partisia Blockchain has grown to 103 baker nodes, and crossed the 100 server mark.
  • For our node operators, Small Oracle selection is now randomized. This ensures a fair selection in who becomes the next small oracle for our BYOC bridge functions. And for previous small oracles it allows them to step back and unstaking of their tokens.
  • Smart contract change: a new feature for developers to put their smart contract “on ice” in the event of gas running out. A smart contract can be safely stored whenever gas runs out of the contract and be brought “back to life” by adding more gas.
  • We have enabled struts in our smart contract language. Developers can now include multiple inputs in an MPC transaction for faster, cheaper execution of zero knowledge computation contracts.
  • We have tweaked our token transfer contracts so tokens cannot be put in limbo. Our “IRIS” sharding technology affords dynamic scalability and requires transfers be done in two steps. In the past, there were rare instances of tokens being stuck in between these steps. We have tweaked our contract so that this can no longer happen.

Stay updated:

Website • Twitter • Discord • Telegram • LinkedIn • Facebook • Instagram • GitLab • Medium • YouTube

Collaboration Between Mutually Distrustful Parties Through MPC

Collaboration Between Mutually Distrustful Parties Through MPC

Trust is the basis for any relationship. Whether it is between you and your friends, or between one company working with another, even with governments sharing information with each other. Without trust, society cannot exist. Every type of a relationship requires some type of trust that is built through time.

But what is trust? And how does one go about establishing it with another entity? Trust is earned through a give-and-take between parties and demonstrated pattern of reliability. It is also relative, as everyone has a different level of risk appetite. A balance that is relative to the amount of risk the person is willing to take against the amount of reliability the other party has demonstrated in the past.

So how does this balance take place?

Clearly, if no one is willing to share or demonstrate anything about themselves, trust cannot be established. There has to be some level of vulnerability to even begin the initial stages of establishing trust. But at the same time, complete and full transparency also does not help establish trust. And this is because almost all relationships start off mutually distrustful. Trust is something earned. If given to someone arbitrary, that person could use that trust against you.

And in a way this balance of privacy and transparency to establish trust has been tipped in favor of one side to another throughout history. How many times have you or someone you know been burned by giving trust to someone who–knowingly or unknowingly–betrayed it? How many deals are broken between companies? How many government secrets have been compromised through leaks? Building trust is a gradual process, where one party shares something in hopes that the other party shares something of equal value.

But what if there was a way to share information without sharing information?

As we reviewed in other articles, multiparty computation allows for the computing of data even if the owner does not share the details around it. And in the example of sharing of data, this means any mutually distrustful parties can collectively allow the use of their data without sharing the details of data itself.

What does this mean in practice? At a high level, this means you can now reduce the weight of risk in the balance of establishing trust. Because you no longer have to expose your private data, the risk of that data being used against you is lowered. And this means you no longer require the same heavy weight for demonstrated reliability that you would need on the other side of the trust scale.

This is a game changer on many levels. Trust is the fundamental basis for any relationships between entities. With MPC, we now have the opportunity to change how this can be played.

In the example below, let’s say we have two financial companies that are competitors. They have a lot of secrets they would like to keep internal, but they do business with each other as a part of their overall practice. As a result of their business, there are many mutual clients. If there was a suspicious activity in one of their clients, having a single set of data they can analyze may not be enough. But what if both companies could share the use of their data together for forensic analysis without sharing the details of the data itself? This may lead to a far more comprehensive analysis.

Another example is where multiple companies need to validate meeting of certain regulatory or compliance goals. But to compute the data, it requires exposing private information. Through MPC and Partisia Blockchain, a company will be able to validate meeting regulatory goals without exposing their data to the public.

These are very simple examples of how companies can still work together without revealing their private data. And we have quite a variety of projects building on Partisia Blockchain that takes advantage of this new way of doing business.

CyberPeace Institute is working with Partisia Blockchain to help NGOs combat the issue of malware and ransomware by allowing NGOs to privately work with other parties who may be facing similar attacks. This allows NGOs to work together with others without reputation impact or exposing information that may create other vulnerabilities in their system.

Monadi is working on helping companies comply with CSRD regulations that will impact over 50,000 companies in the EU. By 2025, companies will need to validate that they are meeting certain SDG goals, with the first goal being able to certify that there is no gender pay gap in their executives’ compensations. As the regulation matures, Monadi will be in a good position to help companies certify other SDG requirements without the need for the company to expose private data.

With a growing number of partners and integrators looking to solve the issue of trust, Partisia Blockchain is well positioned to help provide the solutions we need–whether it is to address the transparency in blockchains or to solve existing problems outside the blockchain space.

For additional insights on this use case, come and watch our Q&A session we did on this topic.

By creating a programming language that allows for developers to use MPC in a generic way, Partisia Blockchain Foundation has made the creation of applications that can harness the power of MPC for different use cases a possibility. Partisia has been at the forefront of providing private MPC solutions since 2008. And by layering this technology on top of an interoperable and scalable blockchain, Partisia Blockchain is now paving the way for anyone to create solutions that can balance privacy and transparency to build trust.

To learn more about different use cases or partner with us for solutions, please visit partisiablockchain.com, check out our Medium articlesdevelopment documentations or email us at build@partisiablockchain.com.