Skip to content
/ crumbs Public

Leave comments on chain whereever you want to.

Notifications You must be signed in to change notification settings

maaasyn/crumbs

Repository files navigation

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.

About

Leave comments on chain whereever you want to.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published