Bitcoin Forum
October 20, 2019, 12:41:01 PM *
News: Latest Bitcoin Core release: 0.18.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
1  Local / Vos sites et projets / Re: Bot pour vérifier automatiquement les signatures. on: Today at 11:22:48 AM
Brainwallet le fait il me semble.

Pas à ma connaissance non Wink

Sinon site web non, mais electrum le fait. Tu dois pouvoir interagir avec l'exe en CLI.

Ouais si vraiment je ne trouve pas d'autre solution, peut-être que je ferais ça, à voir ^^
2  Bitcoin / Project Development / Re: Bot to automatically check signatures. on: Today at 11:18:19 AM
Quote
By the way, I take this opportunity to ask you something, do you know a website to verify the signatures created by addresses other than addresses Legacy ( Segwit ? ) ?

i would drop using these silly online tools and use a decent library but here is a workaround in case you were interested:
(first a simple explanation of what is "message signature verification") an ECDSA signature is two numbers known as r and s. the math behind it has some characteristics that allows you to recover possible public keys from signature by knowing the message that was signed. so the first step is to base64-decode the signature, take r and s out, hash the message and calculate public key(s).
the second step is to convert that public key to an address and then check it with what user gave you.

knowing that you can easily convert a bech32 address to a legacy address* to fool the "silly" tool to pass the second step. all you need is a bech32 decoder

example https://bitcointalk.org/index.php?topic=996318.msg52763726#msg52763726
bc1qarr0w42t3z7xtrcgwxh6kcckzq47tme5xfnj4n ->
e8c6f7554b88bc658f0871afab6316102be5ef34 ->
1NDp7v4M1fueJDob7mrnJktn1SnT4yramy
now the silly tool passes the verification!

you can't use this for addresses starting with 3 (nested SegWit) because they are hash of a hash of public key (it is more complicated than that, just simplifying it) so you have to have the public key and can't use what i explained above.

* node that this is a  workaround and should not be done for anything else. the decoding is done by knowing bech32 encodes "OP_0 <hash160(pubkey)>" and base58 encodes "version <hash160(pubkey)> checksum"


how about an "opt-out" option so that user could post a string (eg. nobot) in first line and get the bot to ignore the message.

Hello,

Thank you for your very interesting message.

To be honest, I did not necessarily understand what to do to perform the "conversion" address.

Would you be able to give me an example of your idea in JavaScript ( Or other language ) for example ?

And for your suggestion, I take note, it's a good idea for those who do not want the application to be processed by the bot.

Thank you very much !
3  Bitcoin / Project Development / Re: Bot to automatically check signatures. on: October 19, 2019, 10:36:48 PM
Hello,

Thank you for your interest about the project Smiley

To answer +/- in order:

1) I could have used a package to directly check the signatures, but it did not fit the idea I wanted. Namely, allow everyone to visually check (Screenshot), and provide the verification link.
2) The purpose of this bot is not necessarily to replace the users who help with the checks. But as you said, rather serve as a complement ( Everyone is free to continue to perform verification Wink ).
3) Now, I understand the problem of hacking, and I will see to try to find a solution to this.
4) The idea of having multiple instances of the bot is interesting, but as it was said, it becomes complicated to manage double posts / who should post / etc ...

Edit : For information, the archive contain the original post and the quotation ( Exemple : https://archive.fo/9DYWr ) Wink

The project is clearly not over, so expect changes to come Wink
4  Economy / Services / Re: Looking For Coder ! on: October 19, 2019, 05:59:57 PM
Hello,

I am interested.

My telegram : @Luluwebmaster
5  Other / Meta / Re: Stake your Bitcoin address here on: October 19, 2019, 05:47:16 PM
Hello,

I take advantage of the launch of the bot to confirm the fact that the account of the bot ( bot_avsignatures ) is my account.

Quote
-----BEGIN BITCOIN SIGNED MESSAGE-----
I'm the owner of bot_avsignatures account. I sign this message at 19 October 2019.
-----BEGIN SIGNATURE-----
1EiK8BgSbMsSuBKafee8DwSQwshVhnBYgP
H7tBlOvIEGjR3Vibn3mR97xybnphtlQXfUM66W1E6I4aEDaLIj7PaK+4ZXyV9g8JSbGw5611+AfF134bQLnmyWY=
-----END BITCOIN SIGNED MESSAGE-----
6  Bitcoin / Project Development / Re: Bot to automatically check signatures. on: October 19, 2019, 02:48:56 PM
Hello,

Thank you Smiley

1) Currently I use "-----BEGIN BITCOIN SIGNED MESSAGE-----", "-----BEGIN SIGNATURE-----" and "-----END BITCOIN SIGNED MESSAGE-----" to found user request.
2) It's pretty simple, any new address ( Not registered in the database, and detected as a signed message ) is saved as a request. From the moment when another user posts a message with this address ( Quote ), then the request is detected as treated ( I am sure that it is not necessarily the best way, it is possible that it changes thereafter ).
3) For the detection, it takes about 5 to 10 seconds, and for the verification process, it takes +/- 30 to 60 seconds ( It is very variable ).
4) Oh, ok thank you, and for "P2SH" addresses, is it possible ?

Edit : And for information, currently the bot can't verify signatures, he is currently saving all the messages already sent on the subject ( +/- 10 000 Roll Eyes ).

Edit 2 :  A screenshot of the console currently Tongue

7  Local / Vos sites et projets / Re: Bot pour vérifier automatiquement les signatures. on: October 19, 2019, 01:21:32 PM
Merci ^^

Sinon ouais c'est une idée auquel je n'avais pas pensé, qui serait possible d'intégrer assez facilement, je vais y réfléchir Smiley
8  Other / Archival / Re: [Tests finished, you can remove it now] on: October 19, 2019, 11:56:04 AM
Removed
9  Other / Archival / Re: [Tests finished, you can remove it now] on: October 19, 2019, 11:53:35 AM
Removed
10  Other / Archival / Re: [Tests finished, you can remove it now] on: October 19, 2019, 11:52:28 AM
Removed
11  Local / Vos sites et projets / Bot pour vérifier automatiquement les signatures. on: October 19, 2019, 11:35:28 AM
Hello à toutes et à tous,

Ça fait quelques temps que je suis ce topic, au fur à mesure que je comprend comment il fonctionne, j'ai commencé à me dire qu'il serait possible de développer un bot pour automatiser tout ça !

C'est donc de la qu'est né ce projet.
Je ne lui ai pas vraiment donné de nom spécifique, mais pour faire simple c'est un bot qui va s'occuper de vérifier automatiquement les signatures postés par les utilisateurs sur le topic cité plus haut.

Le fonctionnement est assez simple, le bot détecte les demandes ( En analysant les derniers messages du topic ), lorsqu'il détecté une requête non traitée par un autre utilisateur, il va lancer le processus de vérification.
Pour ce faire, le bot commence dans un premier à vérifier la signature à l'aide de Brainwallet.
Si la signature est correcte, alors un screen du site est pris. A noter que si la vérification est un échec, le bot s'arrête là et ne répond pas automatiquement ( Possible que ça change par la suite ).
Une fois la vérification terminée, le bot post un premier message, avec dedans la citation ( Quote ) du message de celui qui a effectué la requête, ainsi que le lien Brainwallet + un lien vers le screen de Brainwallet.
Après ça, il enchaîne sur l'archivage de la requête de l'utilisateur ( Intégrant donc la réponse du bot ).
Il termine ensuite en éditant son post, en intégrant un lien vers la citation ( Quote ) et un lien vers l'archive.

Quelques trucs à savoir pour le bon fonctionnement :
- Merci de respecter ce format de signature, sinon le bot ne détectera pas votre demande.
- Actuellement, seul les adresses originales ( Legacy ), sont traitées par le bot.

D'ailleurs, j'en profite pour vous demander un truc, connaissez vous un site web permettant de vérifier les signatures créées par des adresses autres que des adresses Legacy ( Segwit ? ) ?

Pour ceux qui sont intéressés par la partie technique, voici quelques détails :
- Le bot est développé avec Node.JS.
- Packages utilisés : Puppeteer ( Gérer les posts, prendre des screens ), Request ( Scraper les derniers messages + Appels API ), Jsdom ( Aider au scraping ), Jquery ( Aider au scraping ), Mysql ( Enregistrer les données le bon fonctionnement du bot ), Fs ( Pour récupérer le screens ).

Et donc voilà à partir de maintenant, le bot est lancé et fonctionnel !

Si vous n'avez pas encore envoyé votre adresse, n'hésitez pas à venir tester ^^

https://bitcointalk.org/index.php?topic=996318.new;topicseen#new

Si vous le voulez, il est possible de soutenir le projet ici :
- 1DSXQn7AankhmXUvExfZBbo8zWa3ie3jXc

A noter : Durant le début du fonctionnement du bot, je serais la pour vérifier son bon fonctionnement, et corriger les possibles erreurs / bugs de celui-ci.
A noter : Avant le lancement de ce projet, j'ai eu l'autorisation de theymos.

A bientôt !
12  Bitcoin / Project Development / Bot to automatically check signatures. on: October 19, 2019, 11:34:59 AM
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, only the original addresses ( Legacy ), are processed by the bot.

By the way, I take this opportunity to ask you something, do you know a website to verify the signatures created by addresses other than addresses Legacy ( Segwit ? ) ?

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 !

If you have not yet sent your address, do not hesitate to come and test ^^

https://bitcointalk.org/index.php?topic=996318.new;topicseen#new

If 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 !
13  Other / Archival / Re: Test subject for a project ( Don't remove it ). on: October 18, 2019, 09:12:23 PM
Removed
14  Other / Archival / Re: Test subject for a project ( Don't remove it ). on: October 18, 2019, 09:10:18 PM
Removed
15  Other / Archival / Re: Test subject for a project ( Don't remove it ). on: October 18, 2019, 09:09:58 PM
Removed
16  Other / Archival / Re: Test subject for a project ( Don't remove it ). on: October 18, 2019, 09:00:49 PM
Removed
17  Other / Archival / Re: Test subject for a project ( Don't remove it ). on: October 18, 2019, 08:59:34 PM
Removed
18  Other / Archival / Re: Test subject for a project ( Don't remove it ). on: October 18, 2019, 08:52:48 PM
Removed
19  Other / Archival / Re: Test subject for a project ( Don't remove it ). on: October 18, 2019, 08:51:45 PM
Removed
20  Other / Archival / Re: Test subject for a project ( Don't remove it ). on: October 18, 2019, 08:45:47 PM
Removed
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!