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
8
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

Injective (INJ)USDC Becomes Cosmos Standard, Replacing Noble

NVIDIA NIM Boosts Nemotron 3 Ultra Throughput by 2.5x

Algorand (ALGO) Active Wallets Surge 30% in August Amid Mixed Metrics

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

How to Transfer INJ from Binance to Injective (INJ)Safely
Blockchain

Injective (INJ)USDC Becomes Cosmos Standard, Replacing Noble

September 10, 2026
NVIDIA (NVDA) Plans 2-Gigawatt AI Expansion in Australia by 2027
Blockchain

NVIDIA NIM Boosts Nemotron 3 Ultra Throughput by 2.5x

September 10, 2026
Algorand (ALGO) Active Wallets Surge 30% in August Amid Mixed Metrics
Blockchain

Algorand (ALGO) Active Wallets Surge 30% in August Amid Mixed Metrics

September 10, 2026
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

Santos Fires Back at Kalshi Lifetime Ban

Santos Fires Back at Kalshi Lifetime Ban

September 1, 2026
Important Ripple News and XRP Price Update: September 10

Important Ripple News and XRP Price Update: September 10

September 10, 2026
Ripple CEO Says BIS Testing With XRP Ledger Is No Surprise to Him – Bitcoin News

Four XRP ETFs Now Sit in a Schwab Money Fund’s Repo Collateral

September 9, 2026

Popular Stories

  • Hong Kong Monetary Authority Warns About Phishing Messages Targeting China Construction Bank (Asia)

    HKMA Enhances Offshore RMB Bond Repo Business for Greater Market Efficiency

    0 shares
    Share 0 Tweet 0
  • Binance Expands Offerings with Thena (THE) on Multiple Platforms

    0 shares
    Share 0 Tweet 0
  • A Chinese Humanoid-Robot Maker’s Shanghai IPO Surged About 500% After a New “Superman” Demo

    0 shares
    Share 0 Tweet 0
  • Hyperliquid US push faces CME’s Lazarus warning

    0 shares
    Share 0 Tweet 0
  • US $13 trillion debt ceiling debacle

    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!

  • Stockpile Bitcoin Before a Run on US Dollar – Bitcoin News
  • Liquid Hackers Call Blockstream ‘Delusional, Greedy, and Arrogant,’ Demand 10% Bounty
  • Injective (INJ)USDC Becomes Cosmos Standard, Replacing Noble

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.