Giter Site home page Giter Site logo

.net-blockchain's Introduction

.NET-Blockchain

Introduction

I have created a blockchain (code found in Program.cs) using the .NET infrastructure and C#. In addition to setting up classes for the blockchain and blocks, I have created methods to add blocks, find SHA-256 hashes, and carry out computational work to find a nonce such that there is one zero at the end of the hash (proof-of-work).

You can set up your own chain by:

  1. Creating a blockchain object with Chain blockchain = new Chain();
  2. Initializing the head node by using blockchain.init_chain(messaage, difficulty);. The difficulty is the amount of zeros you want at the end of each hash which can be set this in the main function of the Program class.
  3. And last but not least, adding some blocks using blockchain.add_block(prev_hash, index, message);

.net-blockchain's People

Contributors

kdonthi avatar

Watchers

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