Skip to content

Secret Network's randomness feature allows developers to access random numbers in their CosmWasm contracts, enhancing the capabilities of the platform.

License

Notifications You must be signed in to change notification settings

writersblockchain/SecretNetwork-Randomness-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secret Network Randomness Feature Documentation For Secret Contracts

Introduction

Secret Network is a privacy-preserving blockchain platform that enables secure and private transactions and computations using secret contracts. The new randomness feature allows developers to access random numbers in their CosmWasm contracts, enhancing the capabilities of the platform.

Background

The randomness feature is provided by the Secret Network and is accessible within Secret Contracts through the Env struct. It includes an optional random field, which contains a random number as a Binary type. The random field is only available when the "random" feature is enabled.

Use Cases

Randomness is essential in many applications, including:

  • Gaming and gambling platforms, where fair and unpredictable outcomes are crucial
  • Cryptographic systems that require secure random keys or nonces
  • Randomized algorithms for various use cases, such as distributed systems or optimization problems

Coin Flip Tutorial

To follow along with this step-by-step Coin Flip tutorial, visit the Secret Network docs.

About

Secret Network's randomness feature allows developers to access random numbers in their CosmWasm contracts, enhancing the capabilities of the platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published