Skip to content

It uses bitcoinj to implement a simple and easy to use Android wallet.

License

Notifications You must be signed in to change notification settings

HSY229/Simple-Bitcoin-Wallet

Repository files navigation

Simple-Bitcoin-Wallet

It uses bitcoinj to implement a simple and easy to use Android wallet.

It will find the other peers, and then sync the blockchain. It only records the related transaction of wallet. It is not likes the full node, so it does not cost too many storage. The users only can see the address, fetched transactions and export the wallet to mnemonic before sync is completed.

Features

  • create HD wallet with 12 words mnemonic
  • restore HD wallet from 12 words mnemonic
  • export HD wallet to 12 words mnemonic
  • display current address
  • change address
  • receive bitcoin
  • send bitcoin
  • increase the fee of pending transaction
  • list the relevant transactions

Where to get TestNet Bitcoin

https://testnet.coinfaucet.eu/en

Config your Android Studio

  • Android Studio version 3.1.2
  • Gradle version 4.4
  • Android Plugin version 3.1.2
  • Android SDK Platform 27
  • Android SDK Build-Tools 27.0.3

Auto Format

  1. go to Preferences -> Editor -> Code Style
  2. click Manage button
  3. click Import button
  4. chose import from Intellij IDEA code style XML
  5. select the ${rootProject}/qualityTools/intellij-java-google-style.xml file
  6. click the Apply button

CheckStyle plugin

  1. go to Preferences -> Plugins
  2. type CheckStyle-IDEA into search field
  3. press Browse repositories
  4. click the Install button of CheckStyle-IDEA plugin
  5. restart Android Studio
  6. go to Other Settings in Preferences
  7. At Checkstyle page, set Google Checks bundled to be active
  8. Select the Scan Scope to be All files in project

Coding style

This project will follow Google Java Style. Use gradle command to check style.

gradle checkstyle

The report will put in /build/reports/checkstyle/checkstyle.html of each module.

Bitcoin White paper

https://bitcoincore.org/bitcoin.pdf

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

Dependencies

Acknowledgements

Thanks to Bitcoin Wallet for Android. We can learn how to use bitconj library from that highly accomplished project.

License

Copyright 2018-present, Simple-Bitcoin-Wallet Contributors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

It uses bitcoinj to implement a simple and easy to use Android wallet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages