Skip to content

atr0t0s/gopherchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gopherchain

This is a very simple usage of a Go list to add hashed blocks and append a hash to each block that points to the hash of the previous block. You can use it to learn and visualize how a blockchain links the blocks and how a block can be set up to contain any kind of data we wish.

It's easier to think of a blockchain as blocks stacked on top of each other such as so:

            |-----------------|
            |     index       |
            |     data        |
            |     time        |
            |     SHA256      |
            |-----------------|
                    ^
                   / \
                    |
                    |
            |-----------------|
            |     index       |
            |     data        |
            |     time        |
            |     SHA256      |
            |-----------------|

About

Simple blockchain logic in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages