Talk:Bitcoin/address validation: Difference between revisions

Content added Content deleted
(→‎Task definition: Try address generation)
Line 8: Line 8:
::::I was thinking of making a "create a bitcoin address and its private key" task, but on second thought I'm not sure it can be done in a short program. It would require [[wp:elliptic curve]] arithmetic so I may have to create a task about that first.--[[User:Grondilu|Grondilu]] 10:50, 28 November 2012 (UTC)
::::I was thinking of making a "create a bitcoin address and its private key" task, but on second thought I'm not sure it can be done in a short program. It would require [[wp:elliptic curve]] arithmetic so I may have to create a task about that first.--[[User:Grondilu|Grondilu]] 10:50, 28 November 2012 (UTC)
:::::I advise starting with “convert key system to bitcoin address”, which will include the ripemd160 step but not the key generation itself, as well as needing a base58 encoder. (This task has the decoder instead.) –[[User:Dkf|Donal Fellows]] 22:55, 28 November 2012 (UTC)
:::::I advise starting with “convert key system to bitcoin address”, which will include the ripemd160 step but not the key generation itself, as well as needing a base58 encoder. (This task has the decoder instead.) –[[User:Dkf|Donal Fellows]] 22:55, 28 November 2012 (UTC)
::::::Good idea. I'll do that. I'll call it "bitcoin/Public point to address".--[[User:Grondilu|Grondilu]] 02:44, 29 November 2012 (UTC)
: Looking at this further (and peeking at the proposed solutions) the task appears to be to verify that the data is base58-encoded and that the computed check-digits match the supplied ones (which is basically following the bottom of [https://en.bitcoin.it/w/images/en/9/9b/PubKeyToAddr.png this diagram], i.e., after the ripemd160 step). If this is the case, it is important to '''spell this out''' in the task definition rather than leaving it to people to guess. –[[User:Dkf|Donal Fellows]] 09:40, 28 November 2012 (UTC)
: Looking at this further (and peeking at the proposed solutions) the task appears to be to verify that the data is base58-encoded and that the computed check-digits match the supplied ones (which is basically following the bottom of [https://en.bitcoin.it/w/images/en/9/9b/PubKeyToAddr.png this diagram], i.e., after the ripemd160 step). If this is the case, it is important to '''spell this out''' in the task definition rather than leaving it to people to guess. –[[User:Dkf|Donal Fellows]] 09:40, 28 November 2012 (UTC)