Author

Topic: *nix command line tools for Bitcoin (Read 2560 times)

legendary
Activity: 1288
Merit: 1080
December 15, 2010, 09:20:32 PM
#10
That would be nice, but standard unix tools would fill this role easily, and much besides.  The idea that security is enhanced by opposing the realase of common tools, on the assumption that they could be used fraudulently, is false.  If they could be used in that manner, then the secuiryt model is already broken, and someone will be writing these tools for that specific purpose.  I don't believe that command line tools of this nature will materially impact security of Bitcoin.  If I'm wrong, please point out how, so that I may sell all my holding now and watch this whole thing fail.

If by "standard unix tools" you mean ASCII output to stdout, then ok : just have the export function ouput private keys in an ASCII format to stdout.  Such a function should be used with care though, because it's easy to forget to redirect stdout.
legendary
Activity: 1708
Merit: 1010
December 15, 2010, 09:11:31 PM
#9
It wouldn't make double spending easy, double spending is stopped at the receiving end, and if another transaction makes it into the blockchain before this one, that one is the valid transaction.  I'm not suggesting this as a means of defrauding vendors, most won't ever accept transactions that they can't send directly to the network themselves.  I need it, primarily, as a means of getting transactions to and from an old computer that is isolated from any network.  It's really hard to hack into a computer without a network card, which makes a great place to put a savings account.  Getting coins into it just involves updating the blockchain, which is easy enough to do.  Getting coins back out of it is tricker.

I'm thinking that I'm not likely to be the only person that will come up with a use for transactions that can be saved to a file or piped.

Then I think what you really need is an "export" function, which has been requested several times in this forum.

Basically it would allow to export some bitcoins into some private keys in a wallet file.  Of course there would be also an "import" function, for antagonist purspose.


That would be nice, but standard unix tools would fill this role easily, and much besides.  The idea that security is enhanced by opposing the realase of common tools, on the assumption that they could be used fraudulently, is false.  If they could be used in that manner, then the secuiryt model is already broken, and someone will be writing these tools for that specific purpose.  I don't believe that command line tools of this nature will materially impact security of Bitcoin.  If I'm wrong, please point out how, so that I may sell all my holding now and watch this whole thing fail.
legendary
Activity: 1288
Merit: 1080
December 15, 2010, 08:54:02 PM
#8
It wouldn't make double spending easy, double spending is stopped at the receiving end, and if another transaction makes it into the blockchain before this one, that one is the valid transaction.  I'm not suggesting this as a means of defrauding vendors, most won't ever accept transactions that they can't send directly to the network themselves.  I need it, primarily, as a means of getting transactions to and from an old computer that is isolated from any network.  It's really hard to hack into a computer without a network card, which makes a great place to put a savings account.  Getting coins into it just involves updating the blockchain, which is easy enough to do.  Getting coins back out of it is tricker.

I'm thinking that I'm not likely to be the only person that will come up with a use for transactions that can be saved to a file or piped.

Then I think what you really need is an "export" function, which has been requested several times in this forum.

Basically it would allow to export some bitcoins into some private keys in a wallet file.  Of course there would be also an "import" function, for antagonist purspose.
legendary
Activity: 1708
Merit: 1010
December 15, 2010, 08:47:36 PM
#7
Transactions should always be spread through the bitcoin network. Anything else would make double spending really easy. Remember, the transaction has to be included in the next block so it's vital that all miners know of it as soons as possible.

It wouldn't make double spending easy, double spending is stopped at the receiving end, and if another transaction makes it into the blockchain before this one, that one is the valid transaction.  I'm not suggesting this as a means of defrauding vendors, most won't ever accept transactions that they can't send directly to the network themselves.  I need it, primarily, as a means of getting transactions to and from an old computer that is isolated from any network.  It's really hard to hack into a computer without a network card, which makes a great place to put a savings account.  Getting coins into it just involves updating the blockchain, which is easy enough to do.  Getting coins back out of it is tricker.

I'm thinking that I'm not likely to be the only person that will come up with a use for transactions that can be saved to a file or piped.
legendary
Activity: 1288
Merit: 1080
December 15, 2010, 08:42:09 PM
#6
Transactions should always be spread through the bitcoin network. Anything else would make double spending really easy. Remember, the transaction has to be included in the next block so it's vital that all miners know of it as soons as possible.

That's what I thought too.
sr. member
Activity: 337
Merit: 285
December 15, 2010, 08:39:17 PM
#5
Transactions should always be spread through the bitcoin network. Anything else would make double spending really easy. Remember, the transaction has to be included in the next block so it's vital that all miners know of it as soons as possible.
legendary
Activity: 1288
Merit: 1080
December 15, 2010, 08:28:49 PM
#4
Sure, that would work.

Is that even possible to put a transaction into a file ?  What would that mean exactly ?

I mean : I don't understand what would such a file consist of.
legendary
Activity: 1708
Merit: 1010
December 15, 2010, 08:25:12 PM
#3
How difficult would it be to develop a set of command line tools for *nix class OS's?  Specificly, I can see a need of a CL command that can look at the user's wallet and output a transaction to a pipe or file, in turn allowing me to send a transaction as one would any other file.  As an email attachment would be a boon.  Likewise, another command that can take a pipe with an incoming transaction and feed that to either bitcoind or directly onto the Bitcoin network would be neccessary.  Neither of these tools neccessarily need to understand the blockchain, I don't think.

This is a neccessary step for a bitcoin client without any Internet access (i.e. an 'air gap' machine connected only by sneakernet) and would make using Bitcoin over a SSH login connection much easier.

You mean some kind of a '-o' option to the sendtoaddress command ?

Eg:

$ bitcoind sendtoaddress -o transact-file.bitcoin $somebitcoinaddress $amount

or

$ bitcoind sendtoaddress -o - $somebitcoinaddress $amount |gpg -ae "John Doe" |mail [email protected]

and so on ?


Sure, that would work.
legendary
Activity: 1288
Merit: 1080
December 15, 2010, 07:15:29 PM
#2
How difficult would it be to develop a set of command line tools for *nix class OS's?  Specificly, I can see a need of a CL command that can look at the user's wallet and output a transaction to a pipe or file, in turn allowing me to send a transaction as one would any other file.  As an email attachment would be a boon.  Likewise, another command that can take a pipe with an incoming transaction and feed that to either bitcoind or directly onto the Bitcoin network would be neccessary.  Neither of these tools neccessarily need to understand the blockchain, I don't think.

This is a neccessary step for a bitcoin client without any Internet access (i.e. an 'air gap' machine connected only by sneakernet) and would make using Bitcoin over a SSH login connection much easier.

You mean some kind of a '-o' option to the sendtoaddress command ?

Eg:

$ bitcoind sendtoaddress -o transact-file.bitcoin $somebitcoinaddress $amount

or

$ bitcoind sendtoaddress -o - $somebitcoinaddress $amount |gpg -ae "John Doe" |mail [email protected]

and so on ?
legendary
Activity: 1708
Merit: 1010
December 15, 2010, 07:08:46 PM
#1
How difficult would it be to develop a set of command line tools for *nix class OS's?  Specificly, I can see a need of a CL command that can look at the user's wallet and output a transaction to a pipe or file, in turn allowing me to send a transaction as one would any other file.  As an email attachment would be a boon.  Likewise, another command that can take a pipe with an incoming transaction and feed that to either bitcoind or directly onto the Bitcoin network would be neccessary.  Neither of these tools neccessarily need to understand the blockchain, I don't think.

This is a neccessary step for a bitcoin client without any Internet access (i.e. an 'air gap' machine connected only by sneakernet) and would make using Bitcoin over a SSH login connection much easier.
Jump to: