Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First iteration of Miden rollup tutorials #209

Open
3 tasks
Dominik1999 opened this issue Dec 16, 2024 · 1 comment
Open
3 tasks

First iteration of Miden rollup tutorials #209

Dominik1999 opened this issue Dec 16, 2024 · 1 comment

Comments

@Dominik1999
Copy link
Contributor

Dominik1999 commented Dec 16, 2024

Goal

We aim to provide clear, beginner-friendly tutorials and basic program examples for both the Miden Rust client and WebClient. Currently, we guide new developers using our integration tests, but the tutorials will serve as a more accessible introduction. These tutorials will demonstrate how to use the Miden client as a library to build applications, covering most of the fundamental features. To ensure consistency, each tutorial will be available for both the Rust client and the WebClient.

Requirements

  • The tutorials should be executed against our testnet and not use the MockChain.
  • For now, the tutorials need to be written in MASM. When we have our Rust compiler, we will switch to Rust.
  • We also need a text explaining the code in-depth and easy to follow for every tutorial. We will add those texts to our docs.

Tutorial ideas

  • Exchange contract: Mint 10 notes of asset A, in an account consume all notes and create 10 new note P2ID for 10 different receivers. This tutorial should show how a custom transaction is being built
  • Simple counter contract: Deploy a simple smart contract that counts a number. If one wants to change that number, he/she needs to pay at least the amount of the size of the number
  • Rock, Paper, Scissors: Create a smart contract to play Rock Paper Scissors. Find a solution to keep a player's move secret until both players made their move
@gobsponge
Copy link
Contributor

Guess my number: Create a smart contract that assumes a random number between 1 and 100. It should determine the player's win if their guessed number is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants