Giter Site home page Giter Site logo

img-block's Introduction

what this app does:

In the context of this app, mining involves trying different nonce values until one is found that, when combined with
Exif data of the image and the previous block's hash, creates a hash with two leading zeros.
These elements are concatenated into a single string, which is then fed into a cryptographic hashing function SHA-256.
To start the blockchain, drag and drop the first image and click on 'Mine.'
When Hash is produced, Prev Hash of the next block is automatically set.

Alt text

You can follow the same process for the other images.
Because the hash function is deterministic, any modification to the Exif data,
previous block's hash, or nonce would produce a completely different hash value.
The remaining steps show that if a bad actor alters a past transaction, all subsequent blocks must be re-hashed.
To experiment with Bad Actor mode, click on the 'Bad Actor' button.

Alt text

An alrtered image of Vermeer's "Astronomer" appears in the image repository
In Bad Actor mode you can drag and drop an image onto a previously hashed block.
This will effe ctively change the exif data.

Alt text

At this point a new Hash must be found.

Alt text

If the altered block is rehashed, Prev Hash of the next block will no longer match the Hash of altered block.

Alt text

The process is intentionally cumbersome.
After clicking the "Mine" button, use the copy icon to save the new Hash to the clipboard.
Then click on the Prev Hash of the next block.

Alt text

Paste the new Hash of the previous block from the clipboard,
click "Done", and click on "Mine" button to re-hash the current block.
A bad actor would have to repeat these steps for all subsequent blocks.

Alt text

img-block's People

Contributors

nikalmus avatar

Watchers

James Cloos 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.