Started
This is a tutorial for flutter developers to use gs-ur-dart. This SDK can help developers easily achieve data interaction between App and GsWallet Hardware.
Environment
Please check the Flutter SDK version and make sure it isn't lower than version 3.22.1. You can use the flutter upgrade command to upgrade the Flutter SDK to the most recent version.
$ flutter upgrade
Install SDK
// pubspec.yaml
dependencies:
flutter:
sdk: flutter
gs_ur_dart: ^1.0.0
// bash
$ flutter pub get
SDK Structure
GS-UR-DART | pubspec.lock | pubspec.yaml | README.md +---.dart_tool +---example +---lib | +---src | +---bc_ur | +---chain | +---keyring | +---registry | +---utils +---test
Example
Contains two demos for handling QRcodes.
Lib/src
This folder contains core implementation of the sdk. Main subfolders include:
- bc_ur: UR Protocol implementation
- chain: Blockchains Configure
- keyring: APIs implementation
- registry: Various objects implementations based on the UR protocol
- utils: a set of useful utilities
Test
Contains module test code