CryptoSpiel.com
No Result
View All Result
  • Home
  • Live Crypto Prices
  • Live ICO
  • Exchange
  • Crypto News
  • Bitcoin
  • Altcoins
  • Blockchain
  • Regulations
  • Trading
  • Scams
  • Home
  • Live Crypto Prices
  • Live ICO
  • Exchange
  • Crypto News
  • Bitcoin
  • Altcoins
  • Blockchain
  • Regulations
  • Trading
  • Scams
No Result
View All Result
CryptoSpiel.com
No Result
View All Result

Sui Introduces Secure Native Randomness for Testnet Applications

June 14, 2024
in Blockchain
Reading Time: 3 mins read
A A
0
Sui Introduces Secure Native Randomness for Testnet Applications
0
SHARES
6
VIEWS
ShareShareShareShareShare





Developers on the Sui Testnet now have access to a new source of secure randomness generated by Sui validators, according to The Sui Blog. This essential feature, powered by the sui::random module, opens up various possibilities for developers and builders on the platform.

RELATED POSTS

Anthropic Reveals Claude Code Tool Design Philosophy Behind AI Agent Development

Riot Platforms Sells $289M in Bitcoin as Mining Output Drops 4% in Q1

Exploring Chainlink’s Role Beyond Price Feeds in the Blockchain Ecosystem

Applications of Onchain Randomness

Onchain randomness can be utilized in numerous ways, from simulating dice rolls to ensuring fair ticket allocations. Key use cases include:

  • Games of chance: Lotteries, card games, and casino games can leverage onchain randomness to ensure fairness and transparency, allowing anyone to verify the game’s integrity.
  • Random sampling: Useful in governance, dispute resolution, and randomized audits. It can also be employed in committee selections for oracles and DAOs.
  • NFTs: Randomness can create NFTs with varying rarity levels, adding uniqueness and creativity to crypto collectibles.
  • Contests and player matching: Random placement in tournament brackets, matching players for games, and determining the order of play in turn-based games.

Ensuring Secure Randomness

For onchain randomness to be effective, it must be both unpredictable and unbiasable. Unpredictability prevents attackers from manipulating outcomes, while unbiasability ensures no single party can influence the randomness generation process. Existing solutions often fall short due to predictability and bias issues.

Mysten Labs has developed a solution leveraging threshold cryptography and Distributed Key Generation (DKG) to achieve these qualities. This solution, supported by the validator network, allows for fast and secure randomness generation. Validators initiate a DKG protocol to generate secret shares of a distributed key at the start of each epoch. They use these shares to produce randomness continuously during the epoch.

Advantages of Sui’s Native Randomness

Sui’s native randomness solution is faster and more secure than existing methods. It operates parallel to the consensus mechanism, providing random values quickly after a transaction is ordered but before execution. Additionally, Sui’s Move programming language and Programmable Transaction Blocks (PTBs) offer powerful compositions while preventing potential manipulation through built-in restrictions and compiler warnings.

Using the sui::random Module

The sui::random module provides access to pseudorandomness within Sui, enabling various applications. For instance, developers can implement a Move function to select a random winner for a raffle:

entry set_winner(game: &mut Raffle, rnd: &Random, ctx: &TxContext) {
    assert!(is_none(game.winner), EWinnerAlreadySet); // winner is of type Option<u32>
    let gen = new_generator(rnd, ctx);
    game.winner = Some(gen.generate_u32_in_range(1, game.num_of_tickets)); // num_of_tickets is u32 that represents the number of participants
}

This function ensures that a winner has not already been selected, initializes a new random generator, and generates a random number within the range of ticket numbers. The result is a securely and unpredictably chosen winner, thanks to Sui’s robust random generation guarantees.

Buy JNews
ADVERTISEMENT

Sui’s introduction of secure and scalable randomness is a significant advancement, enabling developers to build more robust and secure applications. The feature is now available on the Sui Testnet, and developers are encouraged to explore its capabilities and provide feedback. For more detailed technical information, refer to the Onchain Randomness documentation.

Image source: Shutterstock

. . .

Tags


Credit: Source link

ShareTweetSendPinShare
Previous Post

Kenyan Central Bank to Issue Licenses to Fintech Firms

Next Post

How to Make Money With Meme Coins? Novogratz Chips In

Related Posts

Bitcoin Addresses Holding Between 100 and 10,000 BTC Hit a 7-Week High
Blockchain

Anthropic Reveals Claude Code Tool Design Philosophy Behind AI Agent Development

April 10, 2026
Riot Blockchain Yearly Bitcoin Production Increases by 236%, Accumulates $194M in BTC
Blockchain

Riot Platforms Sells $289M in Bitcoin as Mining Output Drops 4% in Q1

April 2, 2026
Galaxy Digital: Ethereum Developers Discuss Key Upgrades During Latest Consensus Call
Blockchain

Exploring Chainlink’s Role Beyond Price Feeds in the Blockchain Ecosystem

December 9, 2025
Next Post
Michael Novogratz Galaxy Digital to Acquire BitGo Later in 2022

How to Make Money With Meme Coins? Novogratz Chips In

Bitcoin.com to Host $10k Crypto Giveaway In CoinPoker Freeroll Tournament

Bitcoin.com to Host $10k Crypto Giveaway In CoinPoker Freeroll Tournament

Recommended Stories

Can US-Iran new peace deal signal keep Bitcoin above $70,000?

Can US-Iran new peace deal signal keep Bitcoin above $70,000?

April 8, 2026
Riot Blockchain Yearly Bitcoin Production Increases by 236%, Accumulates $194M in BTC

Riot Platforms Sells $289M in Bitcoin as Mining Output Drops 4% in Q1

April 2, 2026
Brutal Regulatory Crackdown Will Hit Crypto Without CLARITY, Warns Coin Center

Brutal Regulatory Crackdown Will Hit Crypto Without CLARITY, Warns Coin Center

March 30, 2026

Popular Stories

  • Winklevoss Twins Continue Crypto Donation Spree With Another $1,000,000 in Bitcoin (BTC)

    Trader Says DeFi Altcoin Aave Witnessing Clear Trend Switch, Updates Forecast on Two Low-Cap Coins

    0 shares
    Share 0 Tweet 0
  • Republican Congressman Tom Emmer Queries FDIC on Alleged Efforts to Purge Crypto Activity from US – Bitcoin News

    0 shares
    Share 0 Tweet 0
  • Crypto Exchanges Support Luna Once Again

    0 shares
    Share 0 Tweet 0
  • Russian Blanket Crypto Ban May now be Limited to PoW Mining Activities

    0 shares
    Share 0 Tweet 0
  • South Korea to Examine Altcoin Listings on Exchanges Due to High Risks

    0 shares
    Share 0 Tweet 0
CryptoSpiel.com

This is an online news portal that aims to provide the latest crypto news, blockchain, regulations and much more stuff like that around the world. Feel free to get in touch with us!

What’s New Here!

  • Ripple CEO Says CLARITY Act Talks Near Breakthrough as Senate Standoff Eases
  • SEC Opens Proceedings on NYSE Proposal to List Grayscale Crypto ETF Options – Regulation Bitcoin News
  • Anthropic Reveals Claude Code Tool Design Philosophy Behind AI Agent Development

Subscribe Now

Loading
  • Live Crypto Prices
  • Contact Us
  • Privacy Policy
  • Terms of Use
  • DMCA

© 2021 - cryptospiel.com - All rights reserved!

No Result
View All Result
  • Home
  • Live Crypto Prices
  • Live ICO
  • Exchange
  • Crypto News
  • Bitcoin
  • Altcoins
  • Blockchain
  • Regulations
  • Trading
  • Scams

© 2021 - cryptospiel.com - All rights reserved!

Please enter CoinGecko Free Api Key to get this plugin works.