I am very new to bitcoins. I have one question. Suppose some one copied their private key and saved it in their harddisk. Next they will do the transaction. Now since you already copied the private keys can you use it again?

How bitcoin prevent this?

I am asking this because. I wish to create something smaller for my brothers school project. So I am out of ideas on how to prevent this.


Excuse me, your question is not clear to me. You probably lack some basic knowledge about private/public keys, addresses and transactions in Bitcoin. I suggest you look up some material on how Bitcoin works:

NOTE: I would add this as a comment, but I don't have enough reputation to do so.

  • 1
    Ok got it. It was my mistake. I thought coins are stored in your computer with every bitcoin as its own address. Now I understand it perfectly.
    – Ajit Hegde
    Aug 16 '17 at 15:02

Your private key gives you access to your public key/address (wallet). Yes you can copy the private key as many times as you like (as people do for backing it up) but the same key is used for that same public key/address or any other address derived from that private key. An analogy would be making multiple copies of you front door key. You will have multiple keys but they still only open one door.


Every private key owner can spend any amount of coins on appropriate address, but every coin on any address can be spent only once. After spending the coin it is suggested to go into another address which has another private key.

upd: Technically they are stored on the blockchain file (>200GB now), which of course is able to copy and wanted to be copied, but your private key is the only ability to let your coins be moved in the chain - if (and only if) you have the proper key. So, the proper key is hard to get and easy to lose and you might not like the idea to copy it except of backup operation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.