Hello to all,
Note : This post is a translation from my
French post.
It's been a while since I'm
this topic, as I understand how it works, I started to tell myself that it would be possible to develop a bot to automate all that!
So this project was born.
I did not really give him a specific name, but to put it simply it's a bot that will automatically check the signatures posted by users on the topic mentioned above.
The operation is quite simple, the bot detects the requests ( By analyzing the last messages of the topic ), when it detects a request not treated by another user, it will launch the verification process.
To do this, the bot starts in a first to check the signature using
Brainwallet.
If the signature is correct, then a screenshot of the site is taken. Note that if the check is unsuccessful, the bot stops there and does not respond automatically ( it may change later ).
Once the verification is complete, the bot post a first message, with the Quote of the message of the person who made the request, as well as the Brainwallet link + a link to the Brainwallet screenshot.
After that, it goes on archiving the request of the user ( thus integrating the response of the bot ).
He then finishes by editing his post, integrating a link to the quote and a link to the archive.
Some tips to know for the proper functioning:
- Please respect
this signature format, otherwise the bot will not detect your request.
- Currently, the original addresses ( Legacy ) and SegWit, are processed by the bot.
- SegWit addresses are processed using
this verification method.
- You can ask that the bot does not check your message, simply by adding "no-bot" somewhere in your message.
By the way, I take this opportunity to ask you something, do you know a website to verify the signatures created by P2SH addresses ?
For those who are interested in the technical part, here are some details:
- The bot is developed with Node.JS.
- Packages used :
-- Puppeteer ( Manage the posts, take screens ).
-- Request ( Scraper the latest messages + API calls ).
-- Jsdom ( Help scraping ).
-- Jquery ( Help scraping ).
-- Mysql ( Save the data the proper operation of the bot ).
-- Fs ( To retrieve the screens ).
And so from now on, the bot is launched and functional !
Well that's for the party bot "private", but following the request of some, I decided to develop another bot, this public and open-source!
This second bot is not for verification, but will serve as additional "security". Let me explain.
The problem with my checking bot is that it will centralize a lot of checks ( And lots of quotes ). Which would make this account a real target for hackers.
To put it simply, the purpose of the bot is to archive all messages
of the subject.
In addition to archiving messages, he also takes care of detecting message updated and deleted messages.
So I used this detection to develop an alert system by email, allowing anyone who wishes to be alerted by email in case of update / deletion of a message.
The goal is that you can then alert the forum that there has been a change / deletion and therefore should be wary ( Depending on the type of message assigned ).
With this bot, it will become much less interesting to try to hack the account of the bot, since even if the account comes to be compromised, it will be possible to find archives.
The advantage is that since this bot is public and open-source, everyone can run it ( Very easy to launch ).
So for those who want to install the bot, this is where it happens:
-
https://github.com/luluwebmaster/bitcointalk-auto-verify-signatures-archive-and-alertHere, I will list all the sites archiving the messages of the subject in question, thus starting with two sites ( Do not hesitate to share yours if you use the bot
) :
-
https://signatures.bitcointalk.luc-mergault.fr/-
https://signatures.bitcointalk.cryptos-currencies.com/Here is a link to see the addresses linked to a nickname ( Replace my username with yours ) :
-
https://signatures.bitcointalk.luc-mergault.fr/user/lulucrypto.htmlIf you have not yet sent your address, do not hesitate to come and test ^^
https://bitcointalk.org/index.php?topic=996318.new;topicseen#newIf you wish, it is possible to support the project here:
- 1DSXQn7AankhmXUvExfZBbo8zWa3ie3jXc
Note : During the beginning of the operation of the bot, I would be there to check its functioning, and correct the possible errors / bugs of it.Note : Before the launch of this project, I had permission from theymos.See you soon !