Skip to content

Latest commit

 

History

History
99 lines (68 loc) · 3.08 KB

README.md

File metadata and controls

99 lines (68 loc) · 3.08 KB

Tesseract

Tesseract Developer Wallet is designed to help you test your dApp integration with Wallets through Tesseract dApp/Wallet integration protocol

Wallet choosing on iOS Wallet requested on iOS

How to use

Install the wallet, by providing prerequisites and following the installation instructions.

Once the wallet is installed, you can just call Tesseract methods from within your dApp and it will show you the option to choose Developer Wallet when you try to request a public key or sign a transaction.

Supported protocols

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 dev-waller 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/Developer Wallet.xcodeproj in Xcode.
  3. Run the Developer Wallet.

Setting up VSCode

The way to make things workable in VSCode, use these settings (.vscode/settings.json):

{
    "rust-analyzer.cargo.target": "x86_64-apple-ios",
    "rust-analyzer.cargo.features": [
        "substrate"
    ]
}

or alternatively use one of the other targets depending on your needs:

#Android
aarch64-linux-android
armv7-linux-androideabi
i686-linux-android
x86_64-linux-android
#iOS
aarch64-apple-ios-sim
aarch64-apple-ios
x86_64-apple-ios

Also, you can switch off the protocol features when not working on them.

License

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