Live data from Hacker News

A peek under Bitcoin’s hood: Writing a client that can create a transaction

samlewis.me

1–10 of 67 posts

Re: A peek under Bitcoin’s hood: Writing a client that can create a transaction

#2
Very cool. This could be used to implement offline wallet with minimal amount of third party code.

One issue I'd like to point is I wish the author used proper random generated private key. Examples on the internet have a nasty habits of being copy pasted and reused verbatim :(

Re: A peek under Bitcoin’s hood: Writing a client that can create a transaction

#3
Article says

> This is also why address reuse in Bitcoin is encouraged as to sign a transaction you need to reveal your public key. If you don't reuse an address after sending a transaction from the address, you don't need worry about the private key of that address being exposed.

Shouldn't that say "address reuse in Bitcoin is discouraged"? Otherwise I don't think I understand what he's trying to say.

Re: A peek under Bitcoin’s hood: Writing a client that can create a transaction

#4
post #3

Article says > This is also why address reuse in Bitcoin is encouraged as to sign a transaction you need to reveal your public key. If you don't reuse an address after sending a transaction from the address, you don't need worry about the private key of that address being exposed. Shouldn't that say "address reuse in Bitcoin is discouraged "? Otherwise I don't think I understand what he's trying to say.

[deleted]

Re: A peek under Bitcoin’s hood: Writing a client that can create a transaction

#5
post #3

Article says > This is also why address reuse in Bitcoin is encouraged as to sign a transaction you need to reveal your public key. If you don't reuse an address after sending a transaction from the address, you don't need worry about the private key of that address being exposed. Shouldn't that say "address reuse in Bitcoin is discouraged "? Otherwise I don't think I understand what he's trying to say.

Address reuse is most certainly discouraged from a security standpoint! I expect that you are correct as to the article's intended meaning.

Re: A peek under Bitcoin’s hood: Writing a client that can create a transaction

#6
post #2

Very cool. This could be used to implement offline wallet with minimal amount of third party code. One issue I'd like to point is I wish the author used proper random generated private key. Examples on the internet have a nasty habits of being copy pasted and reused verbatim :(

Not using cryptographically safe random key is very stupid, even though it is only an example. It should be very trivial to fix this example.

I think in python the right way is to use the os.urandom() function.

Re: A peek under Bitcoin’s hood: Writing a client that can create a transaction

#10

Can someone explain why bitcoin adresses can be created (offline) without blockchain-validation for duplicates? Even if the chances are very small I mean...like....gone is gone...no bank to call for a false transaction.

https://bitcoin.stackexchange.com/questions/22/is-it-possibl...
Post reply on HN