PixelChain-GoLang-Decoder

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

README

PixelChain GoLang Decoder

This is an open source implementation of the PixelChain decoder written in GoLang. The intention of it is to demostrate how the data is stored 100% on the blockchain and how it can be converted back to an image, in this case a PNG file.

Pre requirements

Have GoLang installed and configured in your local environment. More information can be found here https://golang.org/doc/install

Install (Linux/OSX)

Run the following commands

go get github.com/PixelChainDapp/PixelChain-GoLang-Decoder

cd $GOPATH/src/github.com/PixelChainDapp/PixelChain-GoLang-Decoder/

cp config.json.dist config.json

Register in https://infura.io/ and create a project. Copy the MAINNET https endpoint assigned to your project an replace it in your config.json file under the NetworkAddress key.

To build the application run

go build pixelchain.go

Run

To run the application run the following in command line

./pixelchain 0

Replace 0 with any other ethID that you wish to retrieve the image. This ID can be found in the OpenSea URL.

FE: https://opensea.io/assets/0xbc0e164ee423b7800e355b012c06446e28b1a29d/0

The image will be stored in the path defined in the config.json file. By default will be stored under images

Ethereum and GoLang

If you wish to read more about the libraries used to communicate with the blockchain read https://github.com/miguelmota/ethereum-development-with-go-book

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL