Giter Club home page Giter Club logo

bitcoin-wallet's Introduction

Bitcoin Wallet

Set up a Bitcoin wallet. Install several NuGet packages, write the source code for different functionalities and in the end, send and receive coins in your wallet.

NuGetPackages

  • NBitcoin
  • Qbitninja.Client
  • HBitcoin

Network

Bitcoin TestNet

Create the Repo

  1. Created the empty repo in github.
  2. Clone the empty repo to my local box.
  3. Run dotnet new console
  4. Run dotnet run – This should run the code and print out "Hello World!"
  5. Copy the Program.cs code from the exercise template directory to the Program.cs in the project.

Program Options

  • Create – this creates a .JSON file through which different wallet address pairs may be accessed. To create it the user must choose a name and a password. A mnemonic phrase will be displayed on the screen as well as the address public-private keys. This information should be documented and kept in a safe place as it will come in handy afterwards;
  • Recover – with this functionality a user may recreate lost .JSON file. For the fail to ne the correct one the user must have the password and mnemonic phrase;
  • Balance – shows the current balance of all wallets for certain .JSON file;
  • History – this shows the transaction ID of incoming and outgoing coins. It is going to be used when sending coins, since they must be send using the received coins’ transaction ID (why this is so will become obvious in a short while);
  • Receive – shows 10 public addresses for selected .JSON file where the user may receive Bitcoins;
  • Send – used to send Bitcoins to other address. Here the needed information is the name of the .JSON file, the wallet address from which the coins are send, its private key, the transaction ID through which the coins were received beforehand, the address to which the coins are to be send, the amount to be send, the amount to be got back and finally a short message;
  • Exit – kills the program.

Module

MI2: Module 5: E1

bitcoin-wallet's People

Contributors

bethanyuo 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.