<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dergigi</id>
	<title>Bitcoin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dergigi"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Dergigi"/>
	<updated>2026-04-30T17:50:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=From_address&amp;diff=68222</id>
		<title>From address</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=From_address&amp;diff=68222"/>
		<updated>2020-10-13T07:41:13Z</updated>

		<summary type="html">&lt;p&gt;Dergigi: Add archive link to original source&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bitcoin addresses are used to receive payments, but not to send them:&lt;br /&gt;
there is no concept of a &amp;quot;from&amp;quot; address in Bitcoin.&lt;br /&gt;
&lt;br /&gt;
A common exchange on Bitcoin forums goes like this:&lt;br /&gt;
* X: How do I see the address that a transaction came from?&lt;br /&gt;
** or: Why does my wallet software not tell me where transactions came from?&lt;br /&gt;
* Y: (You can’t,) because there is no ‘from’ address.&lt;br /&gt;
* X: What the hell do you mean? My transaction came from somewhere!&lt;br /&gt;
This is an attempt to explain readably but fairly completely in one easily linkable place.&lt;br /&gt;
&lt;br /&gt;
== It depends what your definition of ‘from’ is ==&lt;br /&gt;
&lt;br /&gt;
OK, so before you had these coins, someone else had them&amp;lt;ref&amp;gt;Unless you were [[Coinbase|mining]].&amp;lt;/ref&amp;gt; — let’s say your friend Monica paid you back her share of your restaurant bill right there in the restaurant.&lt;br /&gt;
The reason for avoiding the word ‘from’ is that in common English usage it’s tempting to assume that if something came &#039;&#039;from somewhere&#039;&#039;, and you need to return it or correspond later about something else, that’s where you should &#039;&#039;return it to/reply to&#039;&#039;.&lt;br /&gt;
In the case of Bitcoin transactions (and actually often in the real world) this is an unreliable assumption;&lt;br /&gt;
it confuses the who with the where/how.&lt;br /&gt;
The distinction isn’t just [http://www.deadprogrammer.com/technically-correct pedantry];&lt;br /&gt;
people (especially [[Satoshi Dice]] customers) have made this mistake and have lost money, so it’s primarily an effort to minimise such losses in future&amp;lt;ref&amp;gt;Secondarily, understanding why it’s unreliable is useful both for sound understanding of Bitcoin and for writing robust financial code that doesn’t lose other people’s money or cause support headaches for you.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
I suspect the following factors have contributed to the popularity of the “from” misconception:&lt;br /&gt;
# We often learn by comparing new phenomena to those we’re already familiar with, and in most other payment systems and sender/recipient models the sender has a single permanent identifier.&lt;br /&gt;
# Most blockchain explorers&amp;lt;ref&amp;gt;At least [https://blockexplorer.com blockexplorer.com], [https://blockchain.info blockchain.info], [https://biteasy.com biteasy.com] and [https://blockr.io blockr.io] (at time of writing).&amp;lt;/ref&amp;gt; attempt to show all last-sent-to addresses for a transaction in an effort to be user-friendly, and either show a suggestive arrow or even (in the case of blockexplorer.com) actually label the last-sent-to as “From”. All those I checked represent addresses as having a “balance” which tempts people to think addresses operate like bank accounts.&lt;br /&gt;
# The depiction or use of addresses in some local wallets somewhat encourages it:&lt;br /&gt;
#* Multibit prefers simpler key management over privacy, [https://bitcointalk.org/index.php?topic=208808.msg2191181#msg2191181 sending change “back” to one of the last-sent-to addresses]&lt;br /&gt;
#* Electrum [https://iwilcox.me.uk/2014/no-from/electrum-screenshot represents addresses as having balances]&lt;br /&gt;
# Vanity address use can easily be interpreted as meaning there’s a one-to-one relationship between people and addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Why there’s no ‘from’ address ==&lt;br /&gt;
&lt;br /&gt;
=== By analogy ===&lt;br /&gt;
&lt;br /&gt;
Relying on things that &#039;&#039;seem&#039;&#039; like ‘from’ addresses would be like:&lt;br /&gt;
* Getting on a train/bus that just arrived from where you want to go, in the hope that all trains/buses always turn around and head back the way they came.&lt;br /&gt;
* Trying to reply to mail you received in a re-used envelope — by peeling the sticker bearing your address off, and using the previous address you find underneath.&lt;br /&gt;
* Looking at the routing and account numbers on a cheque you received, and then sending money to those numbers.&lt;br /&gt;
&lt;br /&gt;
===In principle===&lt;br /&gt;
&lt;br /&gt;
The concept of a “from address” is inextricably entwined with &#039;&#039;transaction linkability&#039;&#039;.  Since Bitcoin has no “from address” in its design, the closest substitute in practice is a &#039;&#039;prior receiving address&#039;&#039;.  By implication, and usually without realizing it, people who speak of a “from address” assume that the money they receive must have been previously received at an address which can reliably discovered and linked in a chain of transactions.&lt;br /&gt;
&lt;br /&gt;
In addition to the other problems listed on this page, transactional linkability destroys [[Privacy|privacy]].  To protect privacy, there are active efforts in Bitcoin to make transactions unlinkable; in the abstract, this causes Bitcoin to behave somewhat more like bearer instruments, such as cash or gold coins.  When you receive a physical currency note or a physical coin, there is obviously no “from address”; and you cannot attempt to construct one by examining the transactional history of the note or coin.&lt;br /&gt;
&lt;br /&gt;
=== More technically ===&lt;br /&gt;
&lt;br /&gt;
At the protocol level, when looking at a transaction in isolation as it appears on the wire or in a block, no part of it directly encodes a “from”.&lt;br /&gt;
A transaction provides solutions for some challenges and poses some new challenges, both in the form of [[Script|scripts]]&amp;lt;ref&amp;gt;Although in practice the network currently limits solution scripts to providing solutions directly; solution scripts can’t compute anything.&amp;lt;/ref&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
Here’s one way to depict that for a transaction like [https://blockexplorer.com/rawtx/e9e2c646890be8aa2f32b221e1ac771467839a660dab1e269d1b6d8c11b25063 e9e2....5063]:&lt;br /&gt;
&lt;br /&gt;
[[Image:4ce9ef5f165d910881386f1d65fe1bf93b66ada3.png]]&lt;br /&gt;
&lt;br /&gt;
None of the &amp;lt;code&amp;gt;prev_outs&amp;lt;/code&amp;gt; in the [https://blockexplorer.com/rawtx/e9e2c646890be8aa2f32b221e1ac771467839a660dab1e269d1b6d8c11b25063 decoded version] directly encode addresses in any form.&lt;br /&gt;
It does encode &#039;&#039;indirect references&#039;&#039; to unspent coins, and maybe for some unspent coins you can infer something about &#039;&#039;their&#039;&#039; previous destination, but conceptually those are at best references to previous “to” addresses.&lt;br /&gt;
Even that inference is not always sensible (advanced transactions will probably [https://blockexplorer.com/rawtx/e9e2c646890be8aa2f32b221e1ac771467839a660dab1e269d1b6d8c11b25063 defeat] [https://blockchain.info/tx/54fabd73f1d20c980a0686bf0035078e07f69c58437e4d586fb29aa0bee9814f?show_adv=true most] [https://www.biteasy.com/blockchain/transactions/54fabd73f1d20c980a0686bf0035078e07f69c58437e4d586fb29aa0bee9814f block] [http://blockr.io/tx/info/54fabd73f1d20c980a0686bf0035078e07f69c58437e4d586fb29aa0bee9814f explorers]) and is never necessary or appropriate in everyday use of Bitcoin. The rest of this post will use the term “&#039;&#039;last-sent-to&#039;&#039; address”&amp;lt;ref&amp;gt;Because transactions are multiple-input, multiple-output, it’s really “all last-sent-to addresses”, since without assumptions you’ve no information about whether any one is more valid than any other.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unreliable assumptions ==&lt;br /&gt;
&lt;br /&gt;
So when and how does sending to the last-sent-to address fail?&lt;br /&gt;
Suppose you carefully reconcile your personal accounts at the end of each month and notice then that Monica overpaid.&lt;br /&gt;
Now you need to return some of the money.&lt;br /&gt;
If you send to the last-sent-to address, you’re relying on the assumptions that Monica:&lt;br /&gt;
* uses a local wallet rather than a shared/web wallet&lt;br /&gt;
* didn’t drop her phone in a puddle in the meantime&lt;br /&gt;
* didn’t have her phone stolen in the meantime&lt;br /&gt;
* used coins she received via a simple transaction to pay you&lt;br /&gt;
* knows (or can definitely work out) who is sending that money to her and why&lt;br /&gt;
* is comfortable with the security implications of address re-use&lt;br /&gt;
* is comfortable with the privacy implications of address re-use&lt;br /&gt;
&lt;br /&gt;
If any of these assumptions turn out to be untrue you’ll lose coins, inconvenience Monica, or both.&lt;br /&gt;
Since this is more than you’re likely to know with sufficient confidence about her without checking with her, it’s safer and easier simply to ask her for the correct address to send the overpayment to (hopefully a freshly generated, dedicated one) when you communicate.&lt;br /&gt;
&lt;br /&gt;
The following sections briefly look at why each listed assumption about the last-sent-to address is risky.&lt;br /&gt;
&lt;br /&gt;
* [[#Recipient created the private key|Recipient created the private key]]&lt;br /&gt;
* [[#Recipient still has a copy of the private key|Recipient still has a copy of the private key]]&lt;br /&gt;
* [[#Recipient has maintained exclusive control of the private key|Recipient has maintained exclusive control of the private key]]&lt;br /&gt;
* [[#Recipient used coins they recieved through pay-to-pubkey-hash transactions|Recipient used coins they recieved through pay-to-pubkey-hash transactions]]&lt;br /&gt;
* [[#Recipient can work out the origin reliably|Recipient can work out the origin reliably]]&lt;br /&gt;
* [[#Recipient is comfortable with the security implications of address re-use|Recipient is comfortable with the security implications of address re-use]]&lt;br /&gt;
* [[#Recipient is comfortable with the privacy implications of address re-use|Recipient is comfortable with the privacy implications of address re-use]]&lt;br /&gt;
&lt;br /&gt;
=== Recipient created the private key ===&lt;br /&gt;
&lt;br /&gt;
Many web wallets/exchanges&amp;lt;ref&amp;gt;Besides some sites that provide nothing but wallet services, this includes some centralised exchanges, peer-to-peer or escrow-based exchanges, betting sites, mining pools — any site that holds coins on your behalf and doesn’t give you exclusive access to your private key, or sufficient multisig control of your coins.&amp;lt;/ref&amp;gt; (shared wallets) manage addresses and private keys for you, and pool all deposited coins.&lt;br /&gt;
After you deposit coins to such a site they will almost always use coins you deposited to fulfill other customers’ withdrawals, maintaining your balance only as a centralised database entry.&lt;br /&gt;
Similarly, when you go to withdraw coins to an external address, your withdrawal will probably consist entirely of coins last-sent-to some other customer’s deposit address and/or addresses used purely internally by the site to receive [[Change|change]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;FIXME: diagram of typical shared wallet coin-pooling, picturing your freshly deposited coins being used satisfy another customer’s withdrawal, then someone else’s coins being used to satisfy yours.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In that case, the address Monica’s coins were last-sent-to might just be the deposit address of a completely unrelated user of the same shared wallet Monica uses, or at best, a change address used purely internally by the shared wallet, not associated with any particular user.&lt;br /&gt;
Either way, Monica would be unlikely ever to recover what you sent.&lt;br /&gt;
&lt;br /&gt;
This wouldn’t be a problem if the last-sent-to address&amp;lt;ref&amp;gt;Or, more correctly, if the private key from which that address was derived was created with a local wallet.&amp;lt;/ref&amp;gt; was created with a local wallet such as Bitcoin QT, Electrum or Multibit — but you can’t safely assume that, and even if you know Monica used a local wallet recently she may have changed her habits when creating that address, or switched wallets since.&lt;br /&gt;
&lt;br /&gt;
This doesn’t mean shared wallets are misbehaving by pooling deposits;&lt;br /&gt;
it’s necessary for keeping most coins in cold storage.&lt;br /&gt;
The model has other benefits too;&lt;br /&gt;
they can make more efficient use of block space (and reduce fees as a result) by grouping withdrawals &amp;lt;ref&amp;gt;Bitstamp does this.&amp;lt;/ref&amp;gt; and by handling transfers between customers internally, and provided they protect/expire their logs, they increase privacy.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Recipient still has a copy of the private key ===&lt;br /&gt;
&lt;br /&gt;
Monica may have lost all copies of the last-sent-to address’s private key since paying you, so you may be destroying coins by sending them there.&lt;br /&gt;
While this is unlikely if the interval is short, there are a multitude of ways to lose data:&lt;br /&gt;
* accidental/naïve deletion; especially:&lt;br /&gt;
** [http://www.reddit.com/r/Bitcoin/comments/26xw2s/lost_all_my_btc_depressed_pointless_rant/ switching devices without keeping old wallet data]&lt;br /&gt;
** switching wallet software without keeping old wallet data&lt;br /&gt;
** spending a paper wallet or “physical” bitcoin then discarding it&lt;br /&gt;
* physically losing the media&lt;br /&gt;
* data corruption&lt;br /&gt;
* device failure&lt;br /&gt;
* forgotten password or death of the owner&lt;br /&gt;
* bad app uninstall procedures&lt;br /&gt;
&lt;br /&gt;
and most people are pretty poor at keeping suitably regular/redundant backups.&lt;br /&gt;
Even if Monica is fantastic at keeping regular backups, perhaps the private key is physically distant or requires some tedious recovery procedure, so it might be very inconvenient.&lt;br /&gt;
&lt;br /&gt;
=== Recipient has maintained exclusive control of the private key ===&lt;br /&gt;
&lt;br /&gt;
Monica may have had her private keys extracted from her by an attacker:&lt;br /&gt;
* fallen prey to malware&lt;br /&gt;
* been socially engineered&lt;br /&gt;
* been physically robbed/mugged&lt;br /&gt;
* suffered from a bug in a common wallet&lt;br /&gt;
&lt;br /&gt;
or may have been negligent with it/underestimated attacks:&lt;br /&gt;
* used a weak password&lt;br /&gt;
* left her phone/laptop unattended and unlocked&lt;br /&gt;
* used her wallet from a USB stick in an Internet café&lt;br /&gt;
&lt;br /&gt;
and have taken measures to recover, generating fresh keys/addresses.&lt;br /&gt;
&lt;br /&gt;
Another way Monica might not have exclusive control of the key is if she received the coins by someone handing her a paper wallet, as a present or tip.&lt;br /&gt;
While a careful giver would be sure to wipe the private key from their wallet once they were sure it was spent, they may have forgotten, gone rogue or fallen victim to a wallet-stealing malware themselves.&lt;br /&gt;
&lt;br /&gt;
=== Recipient used coins they recieved through pay-to-pubkey-hash transactions ===&lt;br /&gt;
&lt;br /&gt;
If Monica received those coins she used to pay you at a multisignature address, she may now lack sufficient signing keys to release anything you send there, and it may be inconvenient or impossible for her to get signatures from the other keyholders.&lt;br /&gt;
For instance, maybe she used [https://www.bitrated.com/ Bitrated] and had a dispute resolved in her favour but the arbitrator she chose since discarded or lost their key, went rogue or died.&lt;br /&gt;
Multisignature addresses are just one use of pay-to-script-hash, so you can’t even infer that a pay-to-script-hash is a multisignature address;&lt;br /&gt;
she may have used a more exotic variety.&lt;br /&gt;
&lt;br /&gt;
Even if she received those coins with pay-to-pubkey-hash transactions&amp;lt;ref&amp;gt;Or, I guess, pay-to-pubkey.&amp;lt;/ref&amp;gt;, her transaction to you may have consumed multiple inputs.&lt;br /&gt;
How are you going to distribute your repayment between those?&lt;br /&gt;
Equally?&lt;br /&gt;
Pick one at random?&lt;br /&gt;
Existing use of [https://bitcointalk.org/index.php?topic=279249.0 CoinJoin] probably involves people participating in a join between external transactions, as a separate privacy enhancement step, but as more implementations appear perhaps clients will support direct payments via CoinJoins.&lt;br /&gt;
That would be a similar situation to the shared wallets point above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Recipient can work out the origin reliably ===&lt;br /&gt;
&lt;br /&gt;
This is more about respecting a payee’s preferred payment method and making life easy for them than about avoiding loss.&lt;br /&gt;
To ease accounting (and other reasons) Monica might always create a dedicated address for every receive, and label it with the name of the expected sender and purpose of the transaction.&lt;br /&gt;
If you send to an address Monica gave out to her employer, her accounts won’t balance.&lt;br /&gt;
Assuming her employer and you both follow best practices regarding privacy/address re-use, she can’t tell anything about the mystery incoming funds with any certainty.&lt;br /&gt;
&lt;br /&gt;
In some business (and perhaps tax return) situations having an inexplicable imbalance on an account can be a serious compliance problem;&lt;br /&gt;
while folks in that situation could delete all related keys to prevent that, you can’t be sure they have and even if they did, you’re destroying coins.&lt;br /&gt;
&lt;br /&gt;
=== Recipient is comfortable with the security implications of address re-use ===&lt;br /&gt;
&lt;br /&gt;
Established security best practices discourage address re-use because when Monica sends you the restaurant bill, she reveals the public key for the last-sent-to address;&lt;br /&gt;
before that, the world knew only the address (a hash of the public key) and would have had to perform a pre-image attack to find the public key.&lt;br /&gt;
While it’s pretty unlikely, ECDSA is relatively new and could be found to be weak;&lt;br /&gt;
private keys may somehow be found to be easily derived from public ones, exposing any unspent coins where the public key is known.&lt;br /&gt;
&lt;br /&gt;
Re-using addresses also probably increased the [http://tradeblock.com/research/security-vulnerability-in-all-android-bitcoin-wallets/ losses suffered via the Android SecureRandom bug], since [http://www.nilsschneider.net/2013/01/28/recovering-bitcoin-private-keys.html exploiting it] required seeing two transactions with the same last-sent-to and the same r values.&lt;br /&gt;
&lt;br /&gt;
The discoverers of the OpenSSL ECDSA [http://arstechnica.com/security/2014/03/scientist-devised-crypto-attack-could-one-day-steal-secret-bitcoin-keys/ “FLUSH+RELOAD” attack] estimated that under the right conditions they could recover a private key by observing as few as 200 signatures (in Bitcoin’s case, typical transactions) made with it.&lt;br /&gt;
&lt;br /&gt;
Hopefully those are the last bugs we’ll see related to re-use, but we can’t be sure.&lt;br /&gt;
&lt;br /&gt;
Since it’s Monica’s money at stake here, the decision on whether these threats are significant should be up to her.&lt;br /&gt;
&lt;br /&gt;
=== Recipient is comfortable with the privacy implications of address re-use ===&lt;br /&gt;
&lt;br /&gt;
[https://bitcoin.org/en/protect-your-privacy Established privacy best practices] discourage address re-use because it reduces privacy both for you and, [http://www.bitcoinnotbombs.com/innovations-that-enhance-bitcoin-anonymity/ infectiously], for all other users (most directly, people you transact with, but also to a lesser extent the people they transact with, and so on).&lt;br /&gt;
Even if you feel the simpler key management is worth the privacy cost to you and the rest of the network, it’s more polite to avoid inflicting that cost on Monica any more than you already are — again, you should let her make her own decision on this.&lt;br /&gt;
&lt;br /&gt;
== Solutions ==&lt;br /&gt;
&lt;br /&gt;
If you’re telling someone about Bitcoin you should avoid mentioning the concept, except to explain how, in this respect, Bitcoin doesn’t operate like other payment systems or sender/receiver systems they might know.&lt;br /&gt;
&lt;br /&gt;
Tools like block explorers and wallets should either refrain from showing inferences altogether, or should show them only in an advanced mode — with the right name and a prominent list of reasons why they’re of academic interest only.&lt;br /&gt;
Perhaps if folks make enough noise, they will.&lt;br /&gt;
&lt;br /&gt;
Uptake of the [https://github.com/bitcoin/bips/blob/master/bip-0070.mediawiki payment protocol] and other such measures that deliver refund addresses in the same communication as payment requests/payments should be encouraged.&lt;br /&gt;
These hide such dirty temptations from the user.&lt;br /&gt;
&lt;br /&gt;
Privacy-protecting wallets should be preferred, since those avoid address re-use anyway.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;2014-05-30: incorporate feedback from Andrew Poelstra and Burrito. 2014-05-31: incorporate feedback from Greg Maxwell, btiefert, dsnrk. 2014-06-01: incorporate feedback from Luke-Jr.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Original source: [https://iwilcox.me.uk/2014/no-from-address https://iwilcox.me.uk/2014/no-from-address] ([https://archive.is/9bGY0 archive link])&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Dergigi</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Bech32&amp;diff=68221</id>
		<title>Bech32</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Bech32&amp;diff=68221"/>
		<updated>2020-10-13T07:20:19Z</updated>

		<summary type="html">&lt;p&gt;Dergigi: Remove the &amp;quot;as of 2017&amp;quot; sentence, which mentioned that it is not recommended yet. I would say it is recommended as now (October 2020).&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Bech32&#039;&#039;&#039; is a [[segwit]] [[address]] format specified by [[BIP 0173]]. This address format is also known as &amp;quot;bc1 addresses&amp;quot;. Bech32 is more efficient with block space. As of October 2020, the Bech32 address format is supported in many popular wallets and is the preferred address scheme.&lt;br /&gt;
&lt;br /&gt;
See the page [[Bech32 adoption]] to track adoption.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Examples of the address format being used on mainnet are the TXIDs &amp;lt;code&amp;gt;4ef47f6eb681d5d9fa2f7e16336cd629303c635e8da51e425b76088be9c8744c&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;514a33f1d46179b89e1fea7bbb07b682ab14083a276979f91038369d1a8d689b&amp;lt;/code&amp;gt;. And addresses &amp;lt;code&amp;gt;bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;bc1qc7slrfxkknqcq2jevvvkdgvrt8080852dfjewde450xdlk4ugp7szw5tk9&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* Talk by Pieter Wuille the new bech32 address format (March 2017) https://www.reddit.com/r/Bitcoin/comments/62fydd/pieter_wuille_lecture_on_new_bech32_address_format/&lt;br /&gt;
* Comment by maaku7 explaining how bech32 addresses improve the security of (for example) [[multisignature]] https://www.reddit.com/r/Bitcoin/comments/74tonn/bech32_native_segwit_address_already_used_on_the/dqlogru/&lt;/div&gt;</summary>
		<author><name>Dergigi</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Invoice_address&amp;diff=68204</id>
		<title>Invoice address</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Invoice_address&amp;diff=68204"/>
		<updated>2020-09-21T13:35:55Z</updated>

		<summary type="html">&lt;p&gt;Dergigi: [Trivial] Add missing &amp;quot;to&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;Bitcoin address&#039;&#039;&#039;, or simply &#039;&#039;&#039;address&#039;&#039;&#039;, is an identifier of 26-35 alphanumeric characters, beginning with the number &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;bc1&amp;lt;/code&amp;gt; that represents a possible destination for a bitcoin payment.&lt;br /&gt;
Addresses can be generated at no cost by any user of Bitcoin.&lt;br /&gt;
For example, using [[Bitcoin Core]], one can click &amp;quot;New Address&amp;quot; and be assigned an address.&lt;br /&gt;
It is also possible to get a Bitcoin address using an account at an exchange or online wallet service.&lt;br /&gt;
&lt;br /&gt;
There are currently three [[List_of_address_prefixes|address formats]] in use:&lt;br /&gt;
# [[Transaction#Pay-to-PubkeyHash|P2PKH]] which begin with the number &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, eg: &amp;lt;code&amp;gt;1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2&amp;lt;/code&amp;gt;.&amp;lt;!-- tails donation address --&amp;gt;&lt;br /&gt;
# [[Pay_to_script_hash|P2SH]] type starting with the number &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt;, eg: &amp;lt;code&amp;gt;3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy&amp;lt;/code&amp;gt;&amp;lt;!-- anyone-can-spend, null script --&amp;gt;.&lt;br /&gt;
# [[Bech32]] type starting with &amp;lt;code&amp;gt;bc1&amp;lt;/code&amp;gt;, eg: &amp;lt;code&amp;gt;bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq&amp;lt;/code&amp;gt;.&amp;lt;!--some example LN wallet--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==A Bitcoin address is a single-use token==&lt;br /&gt;
Like e-mail addresses, you can send bitcoins to a person by sending bitcoins to one of their addresses.&lt;br /&gt;
However, &#039;&#039;unlike&#039;&#039; e-mail addresses, people have many different Bitcoin addresses and [[Address reuse|for privacy and security reasons]] a unique address should be used for each transaction.&lt;br /&gt;
Most Bitcoin software and websites will help with this by generating a brand new address each time you create an invoice or payment request.&lt;br /&gt;
&lt;br /&gt;
A naive way to accept bitcoin as a merchant is to tell your customers to send money to a single address. However this does not work because Bitcoin transactions are public on the [[block chain]], so if a customer Alice sends you bitcoins then a malicious agent Bob could see that same transaction and send you an email claiming that he paid. You would have no way of knowing whether it was Alice or Bob who send coins to your address. This is why each customer must be given a brand new address.&lt;br /&gt;
&lt;br /&gt;
==Addresses can be created offline==&lt;br /&gt;
Creating addresses can be done without an Internet connection and does not require any contact or registration with the Bitcoin network.&lt;br /&gt;
It is possible to create large batches of addresses offline using freely available software tools.&lt;br /&gt;
Generating batches of addresses is useful in several scenarios, such as e-commerce websites where a unique pre-generated address is dispensed to each customer who chooses a &amp;quot;pay with Bitcoin&amp;quot; option.&lt;br /&gt;
Newer [[Deterministic wallet | &amp;quot;HD wallets&amp;quot;]] can generate a &amp;quot;master public key&amp;quot; token which can be used to allow untrusted systems (such as webservers) to generate an unlimited number of addresses without the ability to spend the bitcoins received.&lt;br /&gt;
&lt;br /&gt;
==Addresses are often case sensitive and exact==&lt;br /&gt;
Old-style Bitcoin addresses are case-sensitive.  Bitcoin addresses should be copied and pasted using the computer&#039;s clipboard wherever possible. If you hand-key a Bitcoin address, and each character is not transcribed exactly - including capitalization - the incorrect address will most likely be rejected by the Bitcoin software.  You will have to check your entry and try again.&lt;br /&gt;
&lt;br /&gt;
The probability that a mistyped address is accepted as being valid is 1 in 2&amp;lt;sup&amp;gt;32&amp;lt;/sup&amp;gt;, that is, approximately 1 in 4.29 billion.&lt;br /&gt;
&lt;br /&gt;
New-style [[bech32]] addresses are case insensitive.&lt;br /&gt;
&lt;br /&gt;
==Proving you receive with an address==&lt;br /&gt;
Most Bitcoin wallets have a function to &amp;quot;sign&amp;quot; a message, proving the entity receiving funds with an address has agreed to the message.&lt;br /&gt;
This can be used to, for example, finalise a contract in a cryptographically provable way prior to making payment for it.&lt;br /&gt;
&lt;br /&gt;
Some services will also piggy-back on this capability by dedicating a specific address for authentication only, in which case the address should never be used for actual Bitcoin transactions.&lt;br /&gt;
When you login to or use their service, you will provide a signature proving you are the same person with the pre-negotiated address.&lt;br /&gt;
&lt;br /&gt;
It is important to note that these signatures only prove one receives with an address.&lt;br /&gt;
Since Bitcoin transactions do not have a &amp;quot;from&amp;quot; address, you cannot prove you are the &#039;&#039;sender&#039;&#039; of funds.&lt;br /&gt;
&lt;br /&gt;
Current standards for message signatures are only compatible with &amp;quot;version zero&amp;quot; bitcoin addresses (that begin with the number 1).&lt;br /&gt;
&lt;br /&gt;
==Address validation==&lt;br /&gt;
If you would like to validate a Bitcoin address in an application, it is advisable to use a method from [https://bitcointalk.org/index.php?topic=1026.0 this thread] rather than to just check for string length, allowed characters, or that the address starts with a 1 or 3.  Validation may also be done using open source code available in [http://rosettacode.org/wiki/Bitcoin/address_validation various languages] or with an [http://lenschulwitz.com/base58 online validating tool]. &lt;br /&gt;
&lt;br /&gt;
==[[Multisignature|Multi-signature]] addresses==&lt;br /&gt;
Addresses can be created that require a combination of multiple private keys.&lt;br /&gt;
Since these take advantage of newer features, they begin with the newer prefix of 3 instead of the older 1.&lt;br /&gt;
These can be thought of as the equivalent of writing a check to two parties - &amp;quot;pay to the order of somebody AND somebody else&amp;quot; - where both parties must endorse the check in order to receive the funds.&lt;br /&gt;
&lt;br /&gt;
The actual requirement (number of private keys needed, their corresponding public keys, etc.) that must be satisfied to spend the funds is decided in advance by the person generating this type of address, and once an address is created, the requirement cannot be changed without generating a new address.&lt;br /&gt;
&lt;br /&gt;
==What&#039;s in an address==&lt;br /&gt;
Most Bitcoin addresses are 34 characters.&lt;br /&gt;
They consist of random digits and uppercase and lowercase letters, with the exception that the uppercase letter &amp;quot;O&amp;quot;, uppercase letter &amp;quot;I&amp;quot;, lowercase letter &amp;quot;l&amp;quot;, and the number &amp;quot;0&amp;quot; are never used to prevent visual ambiguity.&lt;br /&gt;
&lt;br /&gt;
Some Bitcoin addresses can be shorter than 34 characters (as few as 26) and still be valid.&lt;br /&gt;
A significant percentage of Bitcoin addresses are only 33 characters, and some addresses may be even shorter.&lt;br /&gt;
Every Bitcoin address stands for a number.&lt;br /&gt;
These shorter addresses are valid simply because they stand for numbers that happen to start with zeroes, and when the zeroes are omitted, the encoded address gets shorter.&lt;br /&gt;
&lt;br /&gt;
Several of the characters inside a Bitcoin address are used as a checksum so that typographical errors can be automatically found and rejected.&lt;br /&gt;
The checksum also allows Bitcoin software to confirm that a 33-character (or shorter) address is in fact valid and isn&#039;t simply an address with a missing character.&lt;br /&gt;
&lt;br /&gt;
==Testnet==&lt;br /&gt;
Addresses on the Bitcoin Testnet are generated with a different address version, which results in a different prefix.&lt;br /&gt;
See [[List of address prefixes]] and [[Testnet]] for more details.&lt;br /&gt;
&lt;br /&gt;
==Misconceptions==&lt;br /&gt;
===Address reuse===&lt;br /&gt;
&lt;br /&gt;
Addresses are not intended to be used more than once, and doing so has numerous problems associated.&lt;br /&gt;
See the dedicated article on [[address reuse]] for more details.&lt;br /&gt;
&lt;br /&gt;
===Address balances===&lt;br /&gt;
&lt;br /&gt;
Addresses are not wallets nor accounts, and do not carry balances.&lt;br /&gt;
They only receive funds, and you do not send &amp;quot;from&amp;quot; an address at any time.&lt;br /&gt;
Various confusing services and software display &#039;&#039;bitcoins received with an address, minus bitcoins sent in random unrelated transactions&#039;&#039; as an &amp;quot;address balance&amp;quot;, but this number is not meaningful: it does not imply the recipient of the bitcoins sent to the address has spent them, nor that they still have the bitcoins received.&lt;br /&gt;
&lt;br /&gt;
An example of bitcoin loss resulting from this misunderstanding is when people believed their address contained 3btc. They spent 0.5btc and believed the address now contained 2.5btc when actually it contained zero. The remaining 2.5btc was transferred to a change address which was not backed up and therefore lost. This has happened on a few occasions to users of [[Paper wallets]].&lt;br /&gt;
&lt;br /&gt;
===&amp;quot;From&amp;quot; addresses===&lt;br /&gt;
Bitcoin transactions do not have any kind of origin-, source- or &amp;quot;from&amp;quot; address. See the dedicated article on &amp;quot;[[From address|from address]]&amp;quot; for more details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Address map==&lt;br /&gt;
[[File:Address map.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Technical background of Bitcoin addresses]]&lt;br /&gt;
* [[List of address prefixes]]&lt;br /&gt;
* [[Exit Address]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Vocabulary]]&lt;br /&gt;
&lt;br /&gt;
[[es:Dirección]]&lt;br /&gt;
[[de:Adresse]]&lt;/div&gt;</summary>
		<author><name>Dergigi</name></author>
	</entry>
</feed>