Skip to content

tesseract-one/polkachat.rs

Repository files navigation

Tesseract

Polkadot Chat demo dApp is a demonstration of how Tesseract provides wallet integration for dApps on mobile

Polkadot chat dApp Wallet choosing on iOS Wallet requested on iOS

Demo

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.

Prerequisites

Common prerequisites

Install Rust Environment (nightly) from here.

Android prerequisites

  1. Install Android toolchanins:
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
  1. Install Android Studio
  2. Install Android NDK (no need for CMAKE)

iOS prerequisites

  1. Install iOS toolchanins:
rustup target add aarch64-apple-ios-sim aarch64-apple-ios x86_64-apple-ios
  1. Install Xcode from the App Store

Installation

Installation on Android

  1. Checkout this repo and Tesseract.android side by side.
  2. Open polkachat.rs folder in Android Studio.
  3. Check local.properties.example and copy the ones you need for your environment (i.e. your NDK version) into your local.properties.
  4. Run it on a desired device (or emulator).

Installation on iOS

  1. Checkout this repo.
  2. Open ios/PolkaChat.xcodeproj in Xcode.
  3. Run the Polka Chat.

License

Tesseract.rs can be used, distributed and modified under the Apache 2.0 license.

Releases

No releases published

Packages

No packages published