Polkadot Chat demo dApp is a demonstration of how Tesseract provides wallet integration for dApps on mobile
The demo is a chat, storing messages in a Rococo network smart contract. It shows how the dApps can perform readonly operations without ever connecting to the wallet and how to aquire public key and sign transactions using Tesseract dApp/Wallet integration protocol. In the case of this demo, the transaction is created and submitted when the user wishes to send a message to the chat.
Install Rust Environment (nightly) from here.
- Install Android toolchanins:
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
- Install Android Studio
- Install Android NDK (no need for CMAKE)
- Install iOS toolchanins:
rustup target add aarch64-apple-ios-sim aarch64-apple-ios x86_64-apple-ios
- Install Xcode from the App Store
- Checkout this repo and Tesseract.android side by side.
- Open polkachat.rs folder in Android Studio.
- Check
local.properties.example
and copy the ones you need for your environment (i.e. your NDK version) into yourlocal.properties
. - Run it on a desired device (or emulator).
- Checkout this repo.
- Open
ios/PolkaChat.xcodeproj
in Xcode. - Run the Polka Chat.
Tesseract.rs can be used, distributed and modified under the Apache 2.0 license.