- 📔 Table of Contents
- 🌟 0. Step by step tutorial
- 🌟 4. Prepare env.py
This is part of support chapter for MindLake step-by-step tutorial for Python
env.py
contains the settings of parameters used in examples and use cases, you can copy env_template.py
to the name env.py
and modify it as per your requirement.
If you want to run the examples of QuickStart, Use Case 1 and Use Case 2, you only need to fill out walletAddressAlice
, walletPrivateKeyAlice
and appKey
.
If you want to run Use Case 3, you need to fill out the walltes info for all of Alice
, Bob
and Charlie
.
- Install MetaMask plugins in Chrome Browser
- Sign up a MetaMask Wallet
- Change the network to Goerli TestNet. If the TestNets aren't displayed, turn on "Show test networks" in Settings.
- Goerli Faucet for later gas fee if does not have: Alchemy Goerli Faucet, Quicknode Goerli Faucet, Moralis Goerli Faucet Note that you need to get test coin from faucets for ALL of the wallets specified in env.py
🎯 4.1.2 Wallet Sign In: https://scan.mindnetwork.xyz
- Open a browser and visit mind-scan
- Click "Sign in" buttom
2.1 During the 'Connect' procedure, the wallet will prompt the user 2-3 times as follows: Sign a nonce for login authentication.
2.2 If the user's account keys are already on the chain: Decrypt the user's account keys using the wallet's private key.
2.3 If the user's account keys do not exist yet: Obtain the public key of the wallet, which is used to encrypt the randomly generated account keys.
2.4 Sign the transaction to upload the encrypted key ciphers to the smart contract on the chain.
- If not in whitelist, there will be a pop-up prompt
- Click Apply for test link
- After successful application, Please be patient and wait for the review.
Click the copy icon beside the wallet address in UI of MetaMask, and paste into env.py
These are the steps outlined in the MetaMask support documentation.
- Click on the identicon in the top right.
- Select the account you'd like to export.
- On the account page, click on the menu (three dots) in the upper right corner, and then on the "Account Details" button.
- Click “Export Private Key”.
- To access your private key, you'll now need to enter your wallet password. Once you've done so, click “Confirm” to proceed.
- Your private key will now be revealed. Click to copy it, and paste into env.py.
- Click “Done” to close the screen.
- Click
myDapp
in left side manu
- Click "Create Dapp"
- Input your Dapp name and then click "Create"
- copy appKey value into env.py to update "appKey"