Talk:Bitcoin/address validation: Difference between revisions

add Base58Check section
(→‎Vague task: Crypto's not to be scared of, well not too much)
(add Base58Check section)
 
(5 intermediate revisions by 3 users not shown)
Line 22:
 
:::: I actually know rather more about crypto; while it's certainly not in my comfort zone, it's not ''that'' hard (well, not once you've got a decent arbitrary-size integer library; that's the critical component which it is very difficult to make from scratch). No, my original complaint was that I couldn't find good links to describe what to do or how to validate it; those are key aspects of a good task. (There are some very scary parts of crypto, to be sure, but the actual message verification step isn't one of them, not like key generation or processing the wilder policy parts.) –[[User:Dkf|Donal Fellows]] 11:06, 29 November 2012 (UTC)
 
:::::Indeed there is barely any crypto in this task, apart from the use of sha-256. It mainly consists in big integer arithmetic (and somehow the C code manages not to use big integer, I have to check it out) and byte string manipulations.--[[User:Grondilu|Grondilu]] 11:25, 29 November 2012 (UTC)
 
===C-based code (and possibly others) improperly validates===
Much of the code here does not check to make sure that the bitcoin addresses are 25-bytes. Hence, testing using the C-based code shows that it validates the invalid six-character bitcoin address "BZbvjr". However, trying to send to this address using the standard bitcoin client will naturally produce an error. I have edited the Perl implementation to make it work correctly, but someone who is a better coder than I should do it for the other languages too. [[User:Schulwitz|Schulwitz]] ([[User talk:Schulwitz|talk]]) 22:57, 21 October 2014 (UTC)
: The PHP code, C code, and probably many more of these snippets are incomplete implementations. I have added a warning at the top of the page to indicate this, as this page is linked to from [https://en.bitcoin.it/wiki/Address#Address_validation the bitcoin wiki]. [[User:Kale|Kale]] ([[User talk:Kale|talk]]) 11:19, 12 September 2015 (UTC)
 
== Base58Check encoding algorithm ==
 
This algorithm, "address validation", is not so popular... Is difficult to change its status of "snippets are incomplete".
 
It uses another algorithm inside it, that is simpler and popular, the [https://en.bitcoin.it/wiki/Base58Check_encoding Base58Check encoding algorithm]. So, creating it: [[Base58Check encoding]].
 
--[[User:Krauss|Krauss]] ([[User talk:Krauss|talk]]) 08:43, 13 July 2017 (UTC)
Anonymous user