Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

AltStyle によって変換されたページ (->オリジナル) /