banner
「云华」CloudSino

网络一隅¦Net`Corner

愿我的祝福与你同在︕
github
bilibili
zhihu
steam
discord user
misskey
follow
email

View the email and website of commenters without logging in to xLog.

As we all know, xLog is a blockchain-based blogging system, where posts and comments are made on the chain.

However, considering the low popularity of encrypted wallets in China (at least around me), the traditional blog-style commenting method has become necessary:

Screenshot 2024-08-26 225957

The implementation of the principle of anonymous commenting without logging in is to use the official public account @xlog-anonymous to write down the comments and record them on the chain, displaying the nickname you set and pointing to the link you filled in.

Among these three input boxes, only the email address is completely hidden (both in the front end and the back end) and not used. I thought it was used to support the Gravatar avatar feature, but it actually isn't.

However, since it asks people to fill it in, it means it will be used eventually, at least for now it will definitely be recorded. This gun will fire

For visitors (non-xLog) who I don't know where they came from, I also need an email to contact them. At least as a webmaster, I want to know who they are. (Is this important?)

Main Text#

Taking the top comment as an example, there will be a green shield icon in the upper right corner. Click on it:

Image

It will point to a page like this:

https://scan.crossbell.io/tx/0x3cbf8387332c373972266667dc7e0f4b1860084d80118d045f9203b9d2f15b36

It records the information of this transaction (which can be understood as an action of writing this comment into the blockchain by the public account).

Image

Can't understand it? It's okay, because I can't understand it either

Find the bottommost column, there is a Raw Input, and there is a selection box next to it. Change the default HEX (hexadecimal) to UTF-8 (character encoding).

Copy the string of "garbled characters" after ipfs://, you will need this address later.
Image

Here you can see that there is no complete information about this comment on the blockchain, but rather a storage of an IPFS address
(InterPlanetary File System, similar to a BitTorrent seed? In short, it is a protocol for storing and sharing files. Your articles, homepage, and other configurations on xLog are also stored here using hash indexing)

Like BitTorrent, IPFS files cannot be directly accessed. In the browser, you need a gateway or relay to provide this service. There are many providers, let's take xLog's own as an example:

https://ipfs.crossbell.io/ipfs/ (the address you just copied)

For example: https://ipfs.crossbell.io/ipfs/QmRViNMXtGc3zU3aZsGMp7aNZD76F9b4m41AdjPTjVG3cS

This way, you can see the specific information you filled in when commenting. They are stored in JSON format, which can generally be directly parsed by modern browsers as follows:

Image

If the raw data is given directly, it's okay. Scroll down or search for email, and you will find the content you are looking for.

{"tags":["comment"],"sources":["xlog"],"content":"Hello, this is a comment. If you need to review, edit, or delete the comment, please visit the comment interface on the dashboard. The commenter's avatar is from [Gravatar](https://cn.gravatar.com/)","attributes":[{"trait_type":"xlog_sender_name","value":"A WordPress commenter"},{"trait_type":"xlog_sender_email","value":"wapuu@wordpress.example"},{"trait_type":"xlog_sender_url","value":"https://cn.wordpress.org/"}],"type":"note"}
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.