<h2>Clients</h2>
<p>The word client is normally used for a client-server arrangement. One example is the world wide web where web-browsers like Chrome, Firefox and edge are clients. Web-servers like  apache-webserver and IIS are servers. Clients need servers, clients and servers do entirely different jobs.</p>
<p>Bitcoin doesn't really use a client-server model, it uses a peer to peer model where every node is the same. At least, that was the case in the beginning. Bitcoin was originally designed to avoid the need for trusted third parties but many commercial businesses have entered the Bitcoin world and some of them use a client-server model for the software they provide. This answer will focus instead on the peer-to-peer model used originally and still used by popular wallets like Bitcoin core.</p>
<h2>Wallets</h2>
<p>A wallet does several jobs:</p>
<ul>
<li>It stores data locally.
<ul>
<li>The only truly important item is the private key (or master private key)</li>
<li>It also caches a local copy of the transaction journal (the blockchain)</li>
<li>It keeps other records of transactions etc it has been involved in.</li>
</ul>
</li>
<li>It provides a user interface for a person to spend money, see historical expenditure etc</li>
<li>It creates new unconfirmed transactions that spend money controlled by it's private key
<ul>
<li>It sends these to a few nearby peers to be passed on so they eventually reach miners.</li>
<li>Consequently it has to initially discover some peers and keep contact with them.</li>
</ul>
</li>
<li>It keeps track of the amount of money under it's control (often called a balance)</li>
<li>It communicates with a few other peers to learn about new blocks of transactions</li>
</ul>
<p>Note that the only vital task is storing a number that is kept secret. Everything  else is comparatively unimportant.</p>
<h2>Paper wallets</h2>
<p>a paper wallet is a number written down on a piece of paper and kept secret.</p>
<p>Paper wallets obviously only do the first of the jobs listed above. Storing a private key. Money can be received by a paper wallet because the recipient of a transaction is purely passive and not really involved in the processing of any transaction. The sender only needs to know an address for the recipient, beyond that the recipient is not involved.</p>
<p>Paper wallets were useful for long-term storage of money. However the person who created that wallet would have to have some external means of keeping track of the amount of money. This could be other paper records, use of blockchain-explorers or some other system.</p>
<p>To spend money, the owner of a paper wallet would have to copy the secret number into a software or hardware wallet.</p>
<hr />
<p>Related questions:</p>
<ul>
<li><a href="https://bitcoin.stackexchange.com/q/81240/13866">What kinds of wallets are there?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/106131/13866">How transaction happen in blockchain?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/93145/13866">I sent Bitcoin to an address but the recipient hasn&#39;t yet received it</a></li>
</ul>

CC BY-SA 4.0
2021-05-17T15:34:38.717Z
so that clears most of the question but not the core of the issue. "wallets creates new unconfirmed transactions that spend money controlled by it's private key" and "To spend money, the owner of a paper wallet would have to copy the secret number into a software or hardware wallet."  these are really what I want to know. How does this happen? What does the wallet create and what does it need for that to work in the system? what identifies a new transaction in other nodes/peers/wallets? How does another node identify an incoming message as a bitcoin transaction, rather than other net traffic?
Anonymous
CC BY-SA 4.0
2021-05-17T16:07:12.797Z
(1) In [software](https://github.com/bitcoin/bitcoin). (2) [Packets](https://en.bitcoin.it/wiki/Protocol_documentation). (3) [Peers](https://bitcoin.stackexchange.com/q/72157/13866). (4) [TxID](https://bitcoin.stackexchange.com/questions/29878/what-is-the-transaction-id). (5) [Port number](https://en.bitcoin.it/wiki/Network).
RedGrittyBrick
CC BY-SA 4.0
2021-05-15T10:20:06.270Z
2021-05-15T10:39:19.543Z
2021-05-15T10:39:19.543Z
RedGrittyBrick
<p>What are the actual requirements for a bitcoin transaction?
Not the simple inputs, outputs, verification or amounts, but in the technical sense; what does your wallet do?</p>
<p>Everything I read says you need a client but what does it do?
People used paper wallets before, how were they able to?
Did they still need a client and if so for what reason?
Does it just connect them to the network or is there more to it?</p>

<transactions><wallet><client><protocol><paper-wallet>
What does a wallet do?
Anonymous
# What does a wallet do?

(Asked by: username_0 on 2021-05-14)

What are the actual requirements for a bitcoin transaction?
Not the simple inputs, outputs, verification or amounts, but in the technical sense; what does your wallet do?

Everything I read says you need a client but what does it do?
People used paper wallets before, how were they able to?
Did they still need a client and if so for what reason?
Does it just connect them to the network or is there more to it?

**Tags:** transactions, wallet, client, protocol, paper-wallet


---

## 1 answers

### Answer by username_1 on 2021-05-15. Score: 2

## Clients

The word client is normally used for a client-server arrangement. One example is the world wide web where web-browsers like Chrome, Firefox and edge are clients. Web-servers like apache-webserver and IIS are servers. Clients need servers, clients and servers do entirely different jobs.

Bitcoin doesn't really use a client-server model, it uses a peer to peer model where every node is the same. At least, that was the case in the beginning. Bitcoin was originally designed to avoid the need for trusted third parties but many commercial businesses have entered the Bitcoin world and some of them use a client-server model for the software they provide. This answer will focus instead on the peer-to-peer model used originally and still used by popular wallets like Bitcoin core.

## Wallets

A wallet does several jobs:

* It stores data locally.
  + The only truly important item is the private key (or master private key)
  + It also caches a local copy of the transaction journal (the blockchain)
  + It keeps other records of transactions etc it has been involved in.
* It provides a user interface for a person to spend money, see historical expenditure etc
* It creates new unconfirmed transactions that spend money controlled by it's private key
  + It sends these to a few nearby peers to be passed on so they eventually reach miners.
  + Consequently it has to initially discover some peers and keep contact with them.
* It keeps track of the amount of money under it's control (often called a balance)
* It communicates with a few other peers to learn about new blocks of transactions

Note that the only vital task is storing a number that is kept secret. Everything else is comparatively unimportant.

## Paper wallets

a paper wallet is a number written down on a piece of paper and kept secret.

Paper wallets obviously only do the first of the jobs listed above. Storing a private key. Money can be received by a paper wallet because the recipient of a transaction is purely passive and not really involved in the processing of any transaction. The sender only needs to know an address for the recipient, beyond that the recipient is not involved.

Paper wallets were useful for long-term storage of money. However the person who created that wallet would have to have some external means of keeping track of the amount of money. This could be other paper records, use of blockchain-explorers or some other system.

To spend money, the owner of a paper wallet would have to copy the secret number into a software or hardware wallet.

---

Related questions:

* [What kinds of wallets are there?](https://bitcoin.stackexchange.com/q/81240/13866)
* [How transaction happen in blockchain?](https://bitcoin.stackexchange.com/q/106131/13866)
* [I sent Bitcoin to an address but the recipient hasn't yet received it](https://bitcoin.stackexchange.com/q/93145/13866)

> **Comments:**
> **username_0**: so that clears most of the question but not the core of the issue. "wallets creates new unconfirmed transactions that spend money controlled by it's private key" and "To spend money, the owner of a paper wallet would have to copy the secret number into a software or hardware wallet."  these are really what I want to know. How does this happen? What does the wallet create and what does it need for that to work in the system? what identifies a new transaction in other nodes/peers/wallets? How does another node identify an incoming message as a bitcoin transaction, rather than other net traffic?  
> **username_1**: (1) In [software](https://github.com/bitcoin/bitcoin). (2) [Packets](https://en.bitcoin.it/wiki/Protocol_documentation). (3) [Peers](https://bitcoin.stackexchange.com/q/72157/13866). (4) [TxID](https://bitcoin.stackexchange.com/questions/29878/what-is-the-transaction-id). (5) [Port number](https://en.bitcoin.it/wiki/Network).  

---

