Giter Club home page Giter Club logo

cashbox's Introduction

README_CN

project instruction

This project is an open source wallet Cashbox, mainly to realize the development of mobile platform (android, ios) functions.

Technical selection instructions

In the selection of the Cashbox wallet technology, the upper ui part is implemented with flutter, and the bottom layer uses rust language to compile a dynamic library to implement wallet management, encryption and other functions.

Environment and configuration

Pre-configuration information (features are optional, and configurations can be added, deleted, or modified according to the needs of developers. The function implementation is mainly related to VendorConfig)

  • In the global_config directory, create a vendor_config.dart file. In the whole project, search for the place where VendorConfig is used, and replace it with the developer's own function ip as needed.
  • Apply for test coins, and register etherscan to develop APIs. Configure your apikey in etherscan_util file
  • Change the interface to get the price of the corresponding fiat currency. The location is app/lib/net/rate_util.dart.
  • Add some required default configuration information, such as the backend ip of the price corresponding to the fiat currency, other public interface ip, etc. Location: app/lib/util/sharedpreference_util.dart

Environment installation

  • Install development tools AndroidStudio
  • Install flutter SDK
  • Compile the dynamic library, specifically in bc (written by rust language), there are detailed descriptions of the dynamic library generation process under the directory .

Project running

  • Take android as an example: the compiled dynamic library. Put it in the corresponding directory packages/wallet_manager/android/src/main/jniLibs/arm64-v8a.
  • Name the developer's own applicationId, the corresponding location is: applicationId parameter value in app/android/app/build.gradle.
  • Go to the app directory and execute flutter pub get to synchronize the dependent toolkits.
  • After the computer is connected to the android device, execute flutter run to run the development version of the android application.
  • flutter run --release Run the release version of the application (specific parameters can be changed according to development needs)
  • flutter run --dev
  • flutter build

Cashbox project structure description:

There are three main directories:

  • 1.app --- Use flutter to develop the main function code of the wallet.
  • 2.bc --- Provide dynamic library generation. Can provide encryption, decryption, private key generation, storage and other low-level independent security related functions.
  • 3.packages --- functional plug-in, help to expand the functions of the app, such as providing wallet management function, webview function.

Specific functional modules, you can enter the corresponding module to view the documentation

cashbox's People

Contributors

liupan163 avatar jeremymj avatar peacess avatar tigerinyourdream avatar peng-kun-dai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.