Title: OpenAI generated PHP code for Address/Key is NOT Working. Can anyone plz help? Post by: CounterEntropy on February 18, 2023, 07:07:12 PM I am trying to get a standalone PHP code without any external dependency to generate an Ethereum address/key pair. So I asked OpenAI ChatGPT to write the code for me. I got two different versions from it...
Version 1 Code: include "keccak.php"; Version 2 Code: include "keccak.php"; For Keccak, this code is used - https://github.com/kornrunner/php-keccak/blob/main/src/Keccak.php Sample o/p of Version 1 is... Code: Private key: 1941069a40cc71a83b8df773e0b45cdb8aa70b748710c82eace662c07ede4cf8 Sample o/p of Version 2 is... Code: Private key: 1941069a40cc71a83b8df773e0b45cdb8aa70b748710c82eace662c07ede4cf8 Clearly, address generated by both versions are wrong and AI is unable to fix the code. Can any of you please fix it? Title: Re: OpenAI generated PHP code for Address/Key is NOT Working. Can anyone plz help? Post by: digaran on February 19, 2023, 03:23:14 AM https://bitcointalk.org/index.php?topic=428589.0 go there ask them.
Ps, OpenAI is just a dumb mockup, ask here again and tell her and you are getting wrong results, she'll probably say; my apology, here is the correct code, which again is a wrong code. Lol. Title: Re: OpenAI generated PHP code for Address/Key is NOT Working. Can anyone plz help? Post by: krashfire on February 19, 2023, 10:30:37 AM https://bitcointalk.org/index.php?topic=428589.0 go there ask them. yup. This dude is not lying. I tried it. 1 week. Pisses me off so much. If it's not indent issues..then they give you the correct code..but indentation issues again... I somehow realize too... That they are limited by the a certain number in their response. It always seem to cut off before completing the code. Ps, OpenAI is just a dumb mockup, ask here again and tell her and you are getting wrong results, she'll probably say; my apology, here is the correct code, which again is a wrong code. Lol. |