Skip to content

Commit

Permalink
Release v0.4 prep (#696)
Browse files Browse the repository at this point in the history
* Add in date for the release, and correct token unit to play the guessing game

* Update the change log
  • Loading branch information
Moray Grieve authored Sep 22, 2022
1 parent 2af10bd commit 9f8cfb0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions docs/testnet/changelog.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Obscuro Testnet Change Log

## September 2022-09-xx
## September 2022-09-22 (v0.4)
* Wallet extension:
* The wallet extension now supports separate ports for HTTP and WebSocket connections. Use the `--port` and `--portWS`
command line options respectively for each. For more information see the
[Wallet extension](https://docs.obscu.ro/wallet-extension/wallet-extension.html) documentation.

* Event subscription:
* An early preview of event subscriptions is available in this release, though note that this is still undergoing
testing and feature enhancements and therefore is liable to issues and instability. For more information on the
functionality available reach out to the development team on the discord
[active testnet developers](https://discord.com/channels/916052669955727371/1004752710077259838) channel.
* Transaction receipts:
* Only return receipts for transactions which were included in a canonical rollup.

## September 2022-09-07
## September 2022-09-07 (v0.3)
* Tokens / ERC20 contracts
* The ERC20 'HOC' and 'POC' tokens are now funded with 18 decimal places of precision. Previously funding of 50
tokens was erroneously made as 50 10^-18. This means tokens imported into Metamask will display correctly. Note that
Expand All @@ -18,7 +22,7 @@
* Viewing keys are now persisted across wallet extension restarts
* Enhanced logging for registering of viewing keys

## August 2022-08-22
## August 2022-08-22 (v0.2)
* Account balances:
* Added correct calculation of account balances (previously, all accounts were allocated infinite funds).
* Tokens / ERC20 contracts
Expand Down
6 changes: 3 additions & 3 deletions docs/testnet/example-dapps.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
Obscuro Testnet includes an example dapp to help you better understand how dapps capitalise on Obscuro's unique privacy features.

## Number Guessing Game
[A number guessing game](http://testnet.obscuroscan.io/game) is a simple way of showcasing the principles of privacy in Obscuro. The goal of the game is to guess a secret number. Each time an attempt is made an entrance fee of 1 token is paid. If a player correctly guesses the number the contract will pay out all of the accumulated entrance fees to them and reset itself with a new random number.
[A number guessing game](http://testnet.obscuroscan.io/game) is a simple way of showcasing the principles of privacy in Obscuro. The goal of the game is to guess a secret number. Each time an attempt is made an entrance fee of 1 unit of the token is paid (with 1x10^18 units making a single token). If a player correctly guesses the number the contract will pay out all of the accumulated entrance fees to them and reset itself with a new random number.

Consider for a moment how a secret number could be created without divulging it. This is impossible in a transparent, decentralised ecosystem like Ethereum because when the secret number is generated by the smart contract it would be trivial to look up the internal state of the contract and see the secret number. OK, so let's imagine the internal state of the contract and therefore the secret number _is_ hidden, what happens when players start making their guesses? Using a block explorer to see the attempted guesses in plain view within the details of the transaction immediately provides new players with an unfair advantage and the game is ruined.

Building the guessing game in Obscuro addresses both scenarios described above. The guessing game smart contract generates a random secret number when it is deployed. This number is never revealed to a player or node operator, or indeed anybody because it is generated within a Trusted Execution Environment. And when players make their guesses the transactions carrying the guesses are encrypted and therefore obscured in a block explorer.

### How to Play
1. Start up the wallet extension. Follow instructions [here](https://docs.obscu.ro/wallet-extension/wallet-extension.html).
1. For the moment, request some guessing game tokens to play the game by posting a message with your wallet address to [this Discord thread](https://discord.com/channels/916052669955727371/1004391962733989960). 50 game tokens will be sent to your account. Note this is a temporary solution for now.
1. For the moment, request some guessing game tokens to play the game by posting a message with your wallet address to [this Discord thread](https://discord.com/channels/916052669955727371/1012778541596803153). 50 game tokens will be sent to your account. Note this is a temporary solution for now.
1. If you want to see this balance in your wallet, you have to import a new Token with the address: ``0xf3a8bd422097bFdd9B3519Eaeb533393a1c561aC``
1. Browse to [the number guessing game](http://testnet.obscuroscan.io/game). Check you see `Network ID: 777` at the top of the game window to confirm you are connected to Obscuro Testnet.
1. MetaMask will open and ask to connect your account. Click `Next` then click `Connect`.
1. Approve the payment of 1 token to play the game (this will be added to the prize pool) by clicking the `Approve game fee` button.
1. Approve the payment of 1 token unit to play the game (this will be added to the prize pool) by clicking the `Approve game fee` button.
1. MetaMask will ask for your account to sign a transaction specifying the Guess contract address as the delegate. Click `Confirm`. Once approved you will see a confirmation popup. Click `OK`.
1. Now you can play the game by typing your guess into the secret number field. Click the `Submit guess` button.
1. MetaMask will ask for your account to sign a contract interaction (your guess). Click `Confirm`. Note how the data presented by MetaMask to you is not yet encypted. That happens when MetaMask signs the transaction and sends it to the wallet extension "network", allowing the wallet extension to encrypt it before it leaves your computer.
Expand Down

0 comments on commit 9f8cfb0

Please sign in to comment.