Giter VIP home page Giter VIP logo

godot-blockchain's Introduction

Godot Blockchain

The idea here is to gain some understanding of how blockchain technology works by building relevant nodes in Godot Engine and coding functionality in GDScript. Then simulate transactions.

Godot coin

This will represent the tokens that get accumulated into stakes that are held.

Godot Coin

What is a blockchain?

A blockchain is a growing list of records, called blocks, that are linked using cryptographic hashes. Each block contains a hash of the previous block, a timestamp, and transaction data (generally represented as a Merkle tree). By design, a blockchain is resistant to modification of its data. This is because once recorded, the data in any given block cannot be altered retroactively without alteration of all subsequent blocks.

Representation of a block

We will use a Proof of Stake (PoS) protocol so as not to waste lots of energy as in a PoW (Proof of Work) system.

  • Previous block's hash
  • Timestamp - when the block was created
  • Transaction data (Merkle tree) - Area of confusion for me!
  • Validator address - the validator that was responsible for creating the block

The network

  • Blockchain
  • Validators - these are servers around the Internet

Validators

  • Stake - number of tokens (coins) held
  • Address - such as the IP address of the server

Maybe these will somehow handle transactions and when there are enough records, want to create a new block containing the tokens/coins. This is the area that I don't understand yet.

ToDos

  • Add test suite
  • Figure out how to implement transactions - I don't understand this topic yet
  • Understand the role of a Wallet in this system
  • Create a UI and graphical representation of nodes
  • Be able to run scenarios to simulate activities

godot-blockchain's People

Contributors

andrew-wilkes 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.