Giter VIP home page Giter VIP logo

crumbs's Introduction

Crumbs

Abstract

If you played elden ring, you know how useful/fun the messages left by other players are. This is the same concept but for the web.

The crumbs is a dApp that allows users to create small comments on any website they wish to. All comments commitment is pernamently stored on chain and can be view by anyone.

Crumbs website

As of 2024-05-05 extention is not on the chrome extentions store, so you will have to load it manually.

How it works

Each website is represented by a unique hash that is generated by the website's URL.

cast keccak "https://amazon.com"
# returns 0x8f27e3e37487112bee4cf14def31d887af3a99e26bf5ec708e3e14860b4a8546

The user can then create a comment on the website by signing the hash of the website and the comment itself.

cast keccak "common jeffrey you can do it"

# returns 0x5483c75da019b9e9df6e65578e208793759ac3e3e1f4e0fbc9e5b92f85ffa293

The user can then submit the comment to the contract by calling the storeComment(bytes32 _url, bytes32 _commentHash) function with the hash of the website and the comment.

The comment is then stored on chain and can be viewed by anyone.

Technically, there is no reason why you shouldn't be able to send the commitment of entire Kalevala to the chain, but as of now, I won't be indexing offchain any comment that is larger than ~280 characters.

To view the comment content, we need a hash to value dictionary, which is stored offchain.

Components of the Crumbs

Basic flow

Turn on the beast.

extention pop up

The beast should be visible on the left bottom corner.

beast

Click on the beast to open the extention.

beast pop up

Send a message and see what happens. As of 2024-05-05 it requires metamask to be installed and everything is on eth sepolia.

After submitting the message, the message will be stored on chain and can be viewed by anyone.

crumbs's People

Contributors

maaasyn avatar

Stargazers

 avatar

Watchers

 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.