<p>There are four basic ways, and they all work:</p>

<ol>
<li><p>Come up with an address that passes the basic sanity checks but is internally invalid. You can know for sure that no key could possibly match this address.</p></li>
<li><p>Put strings of characters in the address that are way beyond what anyone could generate in a vanity address. For example, if the Bitcoin address has "FourScoreAndSevenYearsAgo" in it, it's clearly beyond anyone's capability to find a corresponding private key.</p></li>
<li><p>Use a public key that's obviously made up, such as one that consists only of zero bytes or that contains all consecutive digits of Pi. It's clearly beyond anyone's capability to find a corresponding private key. (For this one to work, you need to disclose the public key.)</p></li>
<li><p>Use a hash of the public key that's obviously made up. This works the same as the option above, but the difficulty would be in even finding a public key with such a hash, much less finding the corresponding private key.</p></li>
</ol>

CC BY-SA 3.0
2014-03-10T14:15:50.613Z
Isn't point 1 technically wrong as DeathAndTaxes and ThePiachu have demonstrated? We can't know for sure that no one knows a valid key matching the address-hash since there's an infinite number of valid keys slotted into a limited amount of possible hash values.
Pacerier
CC BY-SA 3.0
2014-03-10T14:16:50.150Z
@Pacerier The address would be internally invalid if we pick point 1. No key could match that address. You can slot an infinite number of things into a finite number of slots and still know for sure that some slots are empty. There are an infinite number of integers and a finite number of English words for categories, yet no integer falls into the category denominated by the word "angel".
David Schwartz
CC BY-SA 3.0
2011-11-02T22:55:43.680Z
2011-11-02T22:55:43.680Z
David Schwartz
<p>If you want to use an address, it would be nice to generate an address that can be verified by a human as obviously unspendable just by looking at the Base58. When you look at these addresses, you will say, "wow, that is obviously unspendable."</p>

<p><code>1CounterpartyXXXXXXXXXXXXXXXUWLpVr</code> &lt;- used by Counterparty</p>

<p><code>1ChancecoinXXXXXXXXXXXXXXXXXZELUFD</code> &lt;- used by Chancecoin</p>

<p>These addresses are characterized by a human-readable identifier at the start, followed by a large number of <code>X</code>'s. In order to spend the funds from an address like this, you would need to first reverse the hash (impossible), then find the private key that corresponds to the public key that you got (also impossible).</p>

<p>Note that the last six digits of these addresses are Base58Check checksums. This is the only tricky part of the process: you need to search over about 4 billion strings until you find a valid Base58Check string. This will only take an instant, though. You can easily generate these addresses using <a href="https://github.com/adamkrellenstein/unspendable" rel="nofollow noreferrer">adamkrellenstein/unspendable</a> on GitHub.</p>

<p>Inspired by <a href="https://bitcoin.stackexchange.com/a/24208/6273">this other StackExchange answer</a>.</p>

CC BY-SA 3.0
2016-02-07T09:45:30.730Z
2016-02-07T09:45:30.730Z
2017-04-13T12:47:33.610Z
paulkernfeld
<p>If you want to be pretty sure nobody can retrieve the Bitcoins:</p>

<ol>
<li>Look at <a href="https://en.bitcoin.it/wiki/Address" rel="noreferrer">the wiki article on Addresses</a>.</li>
<li>Start at point 3 with an obviously fake number (like, "0000000000000000000000000000000000000000")</li>
<li>Continue with points 4-9.</li>
<li>You get a <a href="http://blockexplorer.com/address/1111111111111111111114oLvT2" rel="noreferrer">"valid" address</a> for destroying Bitcoins.</li>
</ol>

<p>What is the catch? As normally you'd generate the public key from a private key and hash it a couple times, in order to retrieve coins from the address you generated, one would have to find such a specific number in point 1, that after points 2 and 3 would generate your bogus number. The chance of you finding one is about 1 in 2^160, which is impossible at current computation speeds. The more orderly the number you used in point 3 is, the more people would believe that it is an obviously fake address.</p>

CC BY-SA 3.0
2011-11-02T21:54:03.553Z
2011-11-02T21:54:03.553Z
ThePiachu
<p>The methods described by DeathAndTaxes are appropriate. The OP_RETURN method is clearly the best if you want to adhere to the bitcoin recommendations.</p>

<p>However, I would like to present an alternative method where you can provably burn coins and also include sufficient information in the address. <a href="https://blog.openbazaar.org/why-proof-of-burn/" rel="nofollow">We used this method</a> in the first versions of OpenBazaar and it is called an "almost-collision coin burning".</p>

<p>The de facto standard for burning coin in bitcoin is through an OP-RETURN script. This script has the important advantage that it contributes to bitcoin’s network scalability, as it allows full nodes to prune their UTXO when proof of burn transactions are detected. The mechanism employed to achieve that is simple: While a UTXO is maintained for all unspent regular transactions, when an OP-RETURN transaction is received by a full node, the full node can avoid adding that transaction to the UTXO completely, as the OP-RETURN script constitutes a proof that the amount remains unspendable and hence no future transaction can attach this dangling output to its input; it is hence a permanent dangling output edge.</p>

<p>OP-RETURN scripts work by having the first operator of the bitcoin script be an OP-RETURN, indicating an immediate exception in the execution of the script, hence making spending impossible. After the initial OP-RETURN operator, the rest of the script data can contain information about why the coin was burned, so that different applications can demand different burning, and so that the association with an account is possible. For example, in OpenBazaar’s case, it is important to associate the burned amount with an OpenBazaar GUID, which can be included as non-executable code after the OP-RETURN. The fact that this code is non-executable follows from that it will never be executed due to the earlier exception. However, the OP-RETURN approach lacks certain usability properties that we wished to preserve in our OpenBazaar implementation. In particular, for simplicity of implementation and usage, as well as for separation of concern reasons, we decided that OpenBazaar does not need to include a bitcoin wallet implementation. Instead, the user can use any existing wallet software they wish. Hence, to make payments required by OpenBazaar, either for product purchases or for burn transactions, the user would have to utilize their wallet directly.</p>

<p>Today, wallets do not have the ability to create OP-RETURN scripts in any usable way. The only way to create burn transactions are through manual issuing of script commands by the user, which can be confusing or impossible to execute for an average user without a programming background. Furthermore, the OP-RETURN script must be associated with an OpenBazaar GUID, something that makes the inclusion of this ability in existing wallets harder. While a wallet software could offer an API to do that, we are not aware of such implementations just yet.</p>

<p>For these reasons, we designed an alternative mechanism for coin burning which uses simple standard pay-to-pubkey-hash transactions. These transactions are treated normally by the bitcoin full nodes, hence they are propagated as required. Furthermore, it is easy for regular wallets to create such transactions, and users can easily understand the process and make the payment without worrying that an unnecessary amount of money will be transferred and without requiring special programming knowledge.</p>

<p>Our schema for burning is based on the following cryptographic assumption, a resistance to an almost-collision: It is computationally infeasible to calculate two hash pre-image values x1, x2 such that:</p>

<p><code>||H(x1)- H(x1)|| &lt; ε</code></p>

<p>Where the norm denotes the Hamming distance of two strings and ε is a small constant, in our case 1. This assumption is strongly supported by the fact that a hash function is cryptographically secure; if this equation did not hold, a collision would have been found, modulo one bit, which indicates the hash is broken up to almost all of its bits.</p>

<p>Under this assumption for H = RIPEMD160, our schema asks for the burner to take the ECDSA public key associated with their OpenBazaar identity and turn it into a bitcoin address by following the regular schema for 1-prefixed bitcoin addresses. Regular bitcoin addresses are generated from regular bitcoin ECDSA keys as shown in <a href="https://en.bitcoin.it/wiki/File:PubKeyToAddr.png" rel="nofollow">the standard bitcoin address generation algorithm</a>.</p>

<p>To generate an address that is provably unspendable, the burner starts with their ECDSA OpenBazaar public key and applies the same process. However, the burner perturbates the first SHA256 hash by one bit before piping it to the RIPEMD160 hash. Specifically, they flip the last bit of the hash output. The rest of the process follows identically. Finally, the burner transfers the amount of coin they wish to burn to this generated address. I will now illustrate the properties of correctness, uniqueness, and security for this scheme. </p>

<p><strong>Correctness</strong>. To verify the correctness of the burn, a third party performs the same transformation as the burner. They begin from the public ECDSA key of the OpenBazaar node whose trust they wish to verify and follow the bitcoin address generation process, applying the same perturbation as the burner after the SHA256 stage. Arriving at the final bitcoin address, the verifier then checks the blockchain for money that was sent to this address. This concludes that the burn an honest burner performs will be correctly verified by an honest verifier. (This is a significant advantage when compared to alternative schemes that do not contain why-burned information such as nothing-up-my-sleeve addresses.)</p>

<p><strong>Uniqueness</strong>. Under the assumption that RIPEMD160 is hard to reverse and the fact that SHA256 is a cryptographically secure hash function, assumptions already made by bitcoin, the uniqueness of burn address for each OpenBazaar key follows directly.</p>

<p><strong>Security</strong>. For this scheme to be secure, we must prove that the burned money cannot actually be spent by anyone. Indeed, if the money were spendable, the spender would have to know the private key associated with a public key which hashes to the perturbed SHA256 value. However, this would allow the generation of an almost-collision in RIPEMD160, as the public key that can be used for spending the burned money and the public key of the OpenBazaar identity would constitute pre-images of hashes that only differ by one bit. From the almost-collision resistance assumption, we conclude that this is computationally infeasible.</p>

<p>The almost-collision method of coin burning introduces scalability challenges for the bitcoin software. We were not concerned with such challenges in OpenBazaar for two reasons. First, we felt a failure for bitcoin to scale given the massive motivated community use of our primitive constitutes a security problem for bitcoin itself, which must be addressed without requiring players to behave fairly to the system. This is a problem for bitcoin, not OpenBazaar. If bitcoin is susceptible to denial-of-service attacks with such means, the use of bitcoin as a payment system must be reconsidered.</p>

<p>Second, most importantly because we support the bitcoin ecosystem and wish to provide suggestions for solving its scalability issues, they can in fact be eliminated if proof-of-burn transactions are accompanied by the pre-image before perturbation. The accompanying pre-image constitutes proof that the money is unspendable, similar to the way OP-RETURN scripts constitute proof of unspendability. As these pre-images will be publicly available on the OpenBazaar network, in case OpenBazaar becomes largely adopted, full bitcoin nodes can utilize the OpenBazaar network to detect prunable UTXO outputs which perform proof-of-burn through almost-collision pay-to-pubkey-hash scripts. Regardless, the optimizability of the payment network is of little concern to its financially motivated users and its technical implementation details remain an open research problem.</p>

<p>Overall, however, once the OP_RETURN method becomes a usable alternative, the other methods of burning should be eliminated for elegance and scalability.</p>

CC BY-SA 3.0
2015-11-21T02:17:15.033Z
2015-11-21T02:17:15.033Z
dionyziz
<p>You may generate address with <a href="https://github.com/samr7/vanitygen" rel="nofollow noreferrer"><code>vanitygen</code></a> or <a href="https://github.com/exploitagency/vanitygen-plus" rel="nofollow noreferrer"><code>vanitygen-plus</code></a>, and ignore the <em>private key</em>. Read more about it here: <a href="https://en.bitcoin.it/wiki/Vanitygen" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Vanitygen</a> </p>

<p>E.g.</p>

<pre><code>$ ./vanitygen 1Love
Difficulty: 4476342
[48165 K/s][total 2080000][Prob 37.2%][50% in 21.2s]                           
Pattern: 1Love
Address: 1LoveRg5t2NCDLUZh6Q8ixv74M5YGVxXaN
Privkey: 5JLUmjZiirgziDmWmNprPsNx8DYwfecUNk1FQXmDPaoKB36fX1o
</code></pre>

<p>Just use the <code>Address</code>, don't save the <code>Privkey</code>.</p>

CC BY-SA 3.0
2014-05-26T04:37:51.653Z
This fails the "How can an address for bitcoin destruction be selected that everyone can be reasonably sure no-one's going to know the private keys to spend the destroyed bitcoins?" requirement. How do I know that you didn't save the private key, or remember it?
mca
CC BY-SA 3.0
2014-01-25T17:06:05.523Z
2018-04-23T16:02:15.540Z
2018-04-23T16:02:15.540Z
Anomalous Awe
<p>An alternative to generating an address is to use a valid address known to be almost impossible to retrieve coins from i.e. <a href="https://blockchain.info/address/1BitcoinEaterAddressDontSendf59kuE" rel="nofollow">https://blockchain.info/address/1BitcoinEaterAddressDontSendf59kuE</a>.</p>

<p>This is a good as destroyed because if anyone could reverse engineer the private key for this address, then due to the vanity length, they could use the same method to reverse engineer the private key for any address. Or they were lucky in the same way as winning the lottery jackpot each week for a year is lucky.</p>

CC BY-SA 3.0
2014-05-26T04:42:59.847Z
2014-05-26T04:42:59.847Z
mca
<h2>Start with an invalid public key</h2>

<p>Bitcoin addresses are the pubkeyhash (not pubkey) plus version and checksum information, encoded in base 58.</p>

<pre><code>Bitcoin address = version + RIPEMD-160(SHA-256( Public Key )) + checksum
</code></pre>

<p>The steps for converting a public key to an address can be found here:
<a href="https://en.bitcoin.it/wiki/Address" rel="noreferrer">https://en.bitcoin.it/wiki/Address</a></p>

<p>Since the address uses the pubkeyhash not the actual pubkey we can exploit this by hashing an invalid pubkey (one which can't possibly exist) and thus produce a valid address from an invalid pubkey.</p>

<p>So to start we find an invalid public key.  <strong>All valid public keys begin with 0x04 if uncompressed and 0x02 or 0x03 if compressed.</strong>  A pubkey beginning with any other value is undefined and thus there is no possible signature that can be created to satisfy that key requirement.  Since spending coins requires signing the transaction with the correct private key, an address which has no known private key is unspendable.  By using a public key which is known to not have a private key others can confirm that no private key exists. </p>

<p>A valid Bitcoin public key (not address):</p>

<blockquote>
  <p>04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f</p>
</blockquote>

<p>An invalid public key</p>

<blockquote>
  <p>0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</p>
</blockquote>

<p>There are other ways to produce a known invalid public key.  ECDSA keys must be exactly 65 bytes if uncompressed or 33 bytes if compressed so a key with a different length will also be invalid.  For uncompressed keys the y value must be correctly produced from the x value.  The point must also lie on the curve.  It also can't be above the modulus for the curve.  So there are a lot of ways to produce provably invalid keys but it best to choose one which is obviously invalid.  This is probably the simplest obviously invalid public key.</p>

<blockquote>
  <p>0x00</p>
</blockquote>

<p>This public key is invalid for a number of reasons (not produced by private key multiplied by the generator, not located on the curve, not a valid point, but even simpler it doesn't have a valid prefix and is not the correct length).</p>

<p><strong>The important thing is this isn't just some probably invalid key it is a provably invalid key.</strong></p>

<p>You should test your invalid public key against the reference client to ensure the client reports it as invalid as well.  The validity of keys is a consensus issue so this will not change short of a hard fork.</p>

<h2>Produce a valid (but unspendable) address from your invalid public key</h2>

<p>You may wonder why we want the address to be valid.  All clients should validate addresses given by users to avoid accidental loss of funds.  So an invalid address is also unspendable but most users will find it impossible to send funds to the address.  A P2PkH address is the pubkeyhash with version and checksum information encoded in base58.</p>

<p>When you provide an address to a Bitcoin client it decodes the address back down to the 'raw' pubkeyhash.  So producing a valid address means starting with a valid pubkeyhash.  This isn't a problem because the hash of anything is a valid hash.  Clients don't know what pubkey is hashed to produce the pubkeyhash as the underlying pubkey is not provided and hashing functions are one way.</p>

<p>The Bitcoin network only verifies that an address is in the right form, length, and has the right checksum when "validating it".  Producing an address from a pubkey is beyond the scope of this question but there are utilities and the link above provides the steps.  The resulting pubkeyhash and encoded address will be seen as valid by the network and client but it requires a provably impossible private key to spend funds sent to that address.</p>

<p>Now with just the address (and decoded pubkeyhash) a user can't verify that the underlying pubkey is invalid so you should publish the raw pubkey along with the address.  Users can recreate the address using any bitcoin client or tool and will produce the same address you provide.  Users now have a trustless way to verify that the coins indeed are unspendable.  Any coins sent to the address can never be spent and are effectively destroyed.</p>

<h2>Hash collision</h2>

<p>Technically it is possible but improbable for more than one public key to have the same Bitcoin address. This is called a hash collision.  If public key p1 and public key p2 both hash to the same address A then privates keys for either of these public keys can spend the funds.  However the likely of this happening is very low.  Unless RIPEMD hash algorithm is broken the probability of finding two public keys which generate the same hash (Bitcoin address) is 1 in 2^160 which is far beyond our computational power to locate.</p>

<h2>A few words on why you should use a 'Nothing Up My Sleeve' number:</h2>

<p>Using a "nothing up my sleeve number" (such as a single zero, all zeroes, single repeating digit, sequential numbers, digits of pi, etc) is not required as any invalid public key is equally unspendable but it would improve public confidence that you haven't already found a collision (as improbable as that is).</p>

<p>If you just take a random invalid key like say:</p>

<blockquote>
  <p>00000fdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f</p>
</blockquote>

<p>Some may question why you chose this specific key. The fear would be that you choose this key not randomly but because you have stumbled upon a collision between this key and a valid key.  There is no way to prove the key is random thus the fear will always remain.  Cryptographic functions (like RIPEMD or SHA-256) often use "nothing up my sleeve values" to provide security that a constant was not chosen to enable some cryptographic flaw or "backdoor" in the algorithm.  For example SHA-256 uses constants for the initial values of the block segments.  Technically these could be any random number but that would lead to concern that the 'random' number isn't actually random.  So SHA-256 uses first 32 bits of the fraction portion of the cube root of the first 8 prime numbers.  This allows verification when a pseudo random number is needed.  It is very unlikely there is some magical property between the fractional portion of the cube root of sequential prime numbers that undermines SHA-256.  </p>

<p><a href="http://en.wikipedia.org/wiki/Nothing_up_my_sleeve_number" rel="noreferrer">http://en.wikipedia.org/wiki/Nothing_up_my_sleeve_number</a></p>

<h2>Update (03/31/2015)</h2>

<p>It is easier to do this now by using an OP_RETURN (null data) output and it doesn't bloat the UTXO with outputs that can't be spent but the network is unaware they can't be spent.  Any funds sent to an output which contains OP_RETURN are provably unspendable and the network will drop the output from the UTXO.  The UTXO (unspent tx output set) is a critical resources which is necessary for validating new transactions and blocks so destroying/burning coins using UTXO is a more responsible use of this shared resource.</p>

CC BY-SA 3.0
2014-01-22T22:14:13.010Z
I think there is an error in the formula in your first paragraph. As explained on [this wiki page](https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses), only a single SHA-256 hash is used for generating the hash-160. For the checksum, however, (the first 4 bytes of) a double SHA-256 hash is used.
Steven Roose
CC BY-SA 3.0
2014-01-23T04:53:06.073Z
That is correct.  Fixed.
DeathAndTaxes
CC BY-SA 3.0
2017-05-25T02:50:22.803Z
I've wrote a C# program that can be compiled and run easily, as well as a list of burn addresses at my blog: http://earlz.net/view/2014/10/22/0340/provably-spendable-altcoin-burn-addresses
Earlz
CC BY-SA 3.0
2018-04-23T09:42:30.343Z
Since you speak of a more responsible use of a shared resource, how can burning Bitcoin be seen as responsible? There is a finite number, each temporarily owned by some individual - it is easy to show that title to your property passes when you do. A company could not legitimately burn any Bitcoin that they possess any more than a company could burn cash - it is not in the best interest of the company. Burning Bitcoin rather than spending is no more responsible than burning your paycheck every week - you deprive yourself and the rest of the shared economy of the benefit when it is spent.
Willtech
CC BY-SA 3.0
2011-11-02T20:52:55.377Z
2015-03-31T18:00:25.670Z
2015-03-31T18:00:25.670Z
DeathAndTaxes
<p>(Following up to <a href="https://bitcoin.stackexchange.com/questions/924/can-a-bitcoin-be-destroyed">this question</a>.)</p>

<p>In order to put a bitcoin beyond use, the answer was to select a made up address. As this isn't a formal destruction of bitcoins, there's a risk that the private keys could be found to spend those "destroyed" bitcoins.</p>

<p>If someone suggests an address, people might suspect that this address was selected because that person painstakingly looked for an address that looked like a made up address.</p>

<p>How can an address for bitcoin destruction be selected that everyone can be reasonably sure no-one's going to know the private keys to spend the destroyed bitcoins?</p>

<development><future-proof><destroy-bitcoins>
How to generate a valid bitcoin address for destroying bitcoins?
billpg
# How to generate a valid bitcoin address for destroying bitcoins?

(Asked by: username_0 on 2011-11-02)

(Following up to [this question](https://bitcoin.stackexchange.com/questions/924/can-a-bitcoin-be-destroyed).)

In order to put a bitcoin beyond use, the answer was to select a made up address. As this isn't a formal destruction of bitcoins, there's a risk that the private keys could be found to spend those "destroyed" bitcoins.

If someone suggests an address, people might suspect that this address was selected because that person painstakingly looked for an address that looked like a made up address.

How can an address for bitcoin destruction be selected that everyone can be reasonably sure no-one's going to know the private keys to spend the destroyed bitcoins?

**Tags:** development, future-proof, destroy-bitcoins


---

## 7 answers

### Answer by username_8 on 2011-11-02. Score: 35 | Accepted answer

## Start with an invalid public key

Bitcoin addresses are the pubkeyhash (not pubkey) plus version and checksum information, encoded in base 58.

```
Bitcoin address = version + RIPEMD-160(SHA-256( Public Key )) + checksum

```

The steps for converting a public key to an address can be found here:
<https://en.bitcoin.it/wiki/Address>

Since the address uses the pubkeyhash not the actual pubkey we can exploit this by hashing an invalid pubkey (one which can't possibly exist) and thus produce a valid address from an invalid pubkey.

So to start we find an invalid public key. **All valid public keys begin with 0x04 if uncompressed and 0x02 or 0x03 if compressed.** A pubkey beginning with any other value is undefined and thus there is no possible signature that can be created to satisfy that key requirement. Since spending coins requires signing the transaction with the correct private key, an address which has no known private key is unspendable. By using a public key which is known to not have a private key others can confirm that no private key exists.

A valid Bitcoin public key (not address):

> 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f

An invalid public key

> 0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

There are other ways to produce a known invalid public key. ECDSA keys must be exactly 65 bytes if uncompressed or 33 bytes if compressed so a key with a different length will also be invalid. For uncompressed keys the y value must be correctly produced from the x value. The point must also lie on the curve. It also can't be above the modulus for the curve. So there are a lot of ways to produce provably invalid keys but it best to choose one which is obviously invalid. This is probably the simplest obviously invalid public key.

> 0x00

This public key is invalid for a number of reasons (not produced by private key multiplied by the generator, not located on the curve, not a valid point, but even simpler it doesn't have a valid prefix and is not the correct length).

**The important thing is this isn't just some probably invalid key it is a provably invalid key.**

You should test your invalid public key against the reference client to ensure the client reports it as invalid as well. The validity of keys is a consensus issue so this will not change short of a hard fork.

## Produce a valid (but unspendable) address from your invalid public key

You may wonder why we want the address to be valid. All clients should validate addresses given by users to avoid accidental loss of funds. So an invalid address is also unspendable but most users will find it impossible to send funds to the address. A P2PkH address is the pubkeyhash with version and checksum information encoded in base58.

When you provide an address to a Bitcoin client it decodes the address back down to the 'raw' pubkeyhash. So producing a valid address means starting with a valid pubkeyhash. This isn't a problem because the hash of anything is a valid hash. Clients don't know what pubkey is hashed to produce the pubkeyhash as the underlying pubkey is not provided and hashing functions are one way.

The Bitcoin network only verifies that an address is in the right form, length, and has the right checksum when "validating it". Producing an address from a pubkey is beyond the scope of this question but there are utilities and the link above provides the steps. The resulting pubkeyhash and encoded address will be seen as valid by the network and client but it requires a provably impossible private key to spend funds sent to that address.

Now with just the address (and decoded pubkeyhash) a user can't verify that the underlying pubkey is invalid so you should publish the raw pubkey along with the address. Users can recreate the address using any bitcoin client or tool and will produce the same address you provide. Users now have a trustless way to verify that the coins indeed are unspendable. Any coins sent to the address can never be spent and are effectively destroyed.

## Hash collision

Technically it is possible but improbable for more than one public key to have the same Bitcoin address. This is called a hash collision. If public key p1 and public key p2 both hash to the same address A then privates keys for either of these public keys can spend the funds. However the likely of this happening is very low. Unless RIPEMD hash algorithm is broken the probability of finding two public keys which generate the same hash (Bitcoin address) is 1 in 2^160 which is far beyond our computational power to locate.

## A few words on why you should use a 'Nothing Up My Sleeve' number:

Using a "nothing up my sleeve number" (such as a single zero, all zeroes, single repeating digit, sequential numbers, digits of pi, etc) is not required as any invalid public key is equally unspendable but it would improve public confidence that you haven't already found a collision (as improbable as that is).

If you just take a random invalid key like say:

> 00000fdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f

Some may question why you chose this specific key. The fear would be that you choose this key not randomly but because you have stumbled upon a collision between this key and a valid key. There is no way to prove the key is random thus the fear will always remain. Cryptographic functions (like RIPEMD or SHA-256) often use "nothing up my sleeve values" to provide security that a constant was not chosen to enable some cryptographic flaw or "backdoor" in the algorithm. For example SHA-256 uses constants for the initial values of the block segments. Technically these could be any random number but that would lead to concern that the 'random' number isn't actually random. So SHA-256 uses first 32 bits of the fraction portion of the cube root of the first 8 prime numbers. This allows verification when a pseudo random number is needed. It is very unlikely there is some magical property between the fractional portion of the cube root of sequential prime numbers that undermines SHA-256.

<http://en.wikipedia.org/wiki/Nothing_up_my_sleeve_number>

## Update (03/31/2015)

It is easier to do this now by using an OP\_RETURN (null data) output and it doesn't bloat the UTXO with outputs that can't be spent but the network is unaware they can't be spent. Any funds sent to an output which contains OP\_RETURN are provably unspendable and the network will drop the output from the UTXO. The UTXO (unspent tx output set) is a critical resources which is necessary for validating new transactions and blocks so destroying/burning coins using UTXO is a more responsible use of this shared resource.

> **Comments:**
> **username_9**: I think there is an error in the formula in your first paragraph. As explained on [this wiki page](https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses), only a single SHA-256 hash is used for generating the hash-160. For the checksum, however, (the first 4 bytes of) a double SHA-256 hash is used.  
> **username_8**: That is correct.  Fixed.  
> **username_10**: I've wrote a C# program that can be compiled and run easily, as well as a list of burn addresses at my blog: http://username_10.net/view/2014/10/22/0340/provably-spendable-altcoin-burn-addresses  
> **username_11**: Since you speak of a more responsible use of a shared resource, how can burning Bitcoin be seen as responsible? There is a finite number, each temporarily owned by some individual - it is easy to show that title to your property passes when you do. A company could not legitimately burn any Bitcoin that they possess any more than a company could burn cash - it is not in the best interest of the company. Burning Bitcoin rather than spending is no more responsible than burning your paycheck every week - you deprive yourself and the rest of the shared economy of the benefit when it is spent.  

---

### Answer by username_1 on 2011-11-02. Score: 7

There are four basic ways, and they all work:

1. Come up with an address that passes the basic sanity checks but is internally invalid. You can know for sure that no key could possibly match this address.
2. Put strings of characters in the address that are way beyond what anyone could generate in a vanity address. For example, if the Bitcoin address has "FourScoreAndSevenYearsAgo" in it, it's clearly beyond anyone's capability to find a corresponding private key.
3. Use a public key that's obviously made up, such as one that consists only of zero bytes or that contains all consecutive digits of Pi. It's clearly beyond anyone's capability to find a corresponding private key. (For this one to work, you need to disclose the public key.)
4. Use a hash of the public key that's obviously made up. This works the same as the option above, but the difficulty would be in even finding a public key with such a hash, much less finding the corresponding private key.

> **Comments:**
> **username_2**: Isn't point 1 technically wrong as username_8 and username_4 have demonstrated? We can't know for sure that no one knows a valid key matching the address-hash since there's an infinite number of valid keys slotted into a limited amount of possible hash values.  
> **username_1**: @username_2 The address would be internally invalid if we pick point 1. No key could match that address. You can slot an infinite number of things into a finite number of slots and still know for sure that some slots are empty. There are an infinite number of integers and a finite number of English words for categories, yet no integer falls into the category denominated by the word "angel".  

---

### Answer by username_3 on 2016-02-07. Score: 5

If you want to use an address, it would be nice to generate an address that can be verified by a human as obviously unspendable just by looking at the Base58. When you look at these addresses, you will say, "wow, that is obviously unspendable."

`1CounterpartyXXXXXXXXXXXXXXXUWLpVr` <- used by Counterparty

`1ChancecoinXXXXXXXXXXXXXXXXXZELUFD` <- used by Chancecoin

These addresses are characterized by a human-readable identifier at the start, followed by a large number of `X`'s. In order to spend the funds from an address like this, you would need to first reverse the hash (impossible), then find the private key that corresponds to the public key that you got (also impossible).

Note that the last six digits of these addresses are Base58Check checksums. This is the only tricky part of the process: you need to search over about 4 billion strings until you find a valid Base58Check string. This will only take an instant, though. You can easily generate these addresses using [adamkrellenstein/unspendable](https://github.com/adamkrellenstein/unspendable) on GitHub.

Inspired by [this other StackExchange answer](https://bitcoin.stackexchange.com/a/24208/6273).


---

### Answer by username_4 on 2011-11-02. Score: 5

If you want to be pretty sure nobody can retrieve the Bitcoins:

1. Look at [the wiki article on Addresses](https://en.bitcoin.it/wiki/Address).
2. Start at point 3 with an obviously fake number (like, "0000000000000000000000000000000000000000")
3. Continue with points 4-9.
4. You get a ["valid" address](http://blockexplorer.com/address/1111111111111111111114oLvT2) for destroying Bitcoins.

What is the catch? As normally you'd generate the public key from a private key and hash it a couple times, in order to retrieve coins from the address you generated, one would have to find such a specific number in point 1, that after points 2 and 3 would generate your bogus number. The chance of you finding one is about 1 in 2^160, which is impossible at current computation speeds. The more orderly the number you used in point 3 is, the more people would believe that it is an obviously fake address.


---

### Answer by username_5 on 2015-11-21. Score: 2

The methods described by username_8 are appropriate. The OP\_RETURN method is clearly the best if you want to adhere to the bitcoin recommendations.

However, I would like to present an alternative method where you can provably burn coins and also include sufficient information in the address. [We used this method](https://blog.openbazaar.org/why-proof-of-burn/) in the first versions of OpenBazaar and it is called an "almost-collision coin burning".

The de facto standard for burning coin in bitcoin is through an OP-RETURN script. This script has the important advantage that it contributes to bitcoin’s network scalability, as it allows full nodes to prune their UTXO when proof of burn transactions are detected. The mechanism employed to achieve that is simple: While a UTXO is maintained for all unspent regular transactions, when an OP-RETURN transaction is received by a full node, the full node can avoid adding that transaction to the UTXO completely, as the OP-RETURN script constitutes a proof that the amount remains unspendable and hence no future transaction can attach this dangling output to its input; it is hence a permanent dangling output edge.

OP-RETURN scripts work by having the first operator of the bitcoin script be an OP-RETURN, indicating an immediate exception in the execution of the script, hence making spending impossible. After the initial OP-RETURN operator, the rest of the script data can contain information about why the coin was burned, so that different applications can demand different burning, and so that the association with an account is possible. For example, in OpenBazaar’s case, it is important to associate the burned amount with an OpenBazaar GUID, which can be included as non-executable code after the OP-RETURN. The fact that this code is non-executable follows from that it will never be executed due to the earlier exception. However, the OP-RETURN approach lacks certain usability properties that we wished to preserve in our OpenBazaar implementation. In particular, for simplicity of implementation and usage, as well as for separation of concern reasons, we decided that OpenBazaar does not need to include a bitcoin wallet implementation. Instead, the user can use any existing wallet software they wish. Hence, to make payments required by OpenBazaar, either for product purchases or for burn transactions, the user would have to utilize their wallet directly.

Today, wallets do not have the ability to create OP-RETURN scripts in any usable way. The only way to create burn transactions are through manual issuing of script commands by the user, which can be confusing or impossible to execute for an average user without a programming background. Furthermore, the OP-RETURN script must be associated with an OpenBazaar GUID, something that makes the inclusion of this ability in existing wallets harder. While a wallet software could offer an API to do that, we are not aware of such implementations just yet.

For these reasons, we designed an alternative mechanism for coin burning which uses simple standard pay-to-pubkey-hash transactions. These transactions are treated normally by the bitcoin full nodes, hence they are propagated as required. Furthermore, it is easy for regular wallets to create such transactions, and users can easily understand the process and make the payment without worrying that an unnecessary amount of money will be transferred and without requiring special programming knowledge.

Our schema for burning is based on the following cryptographic assumption, a resistance to an almost-collision: It is computationally infeasible to calculate two hash pre-image values x1, x2 such that:

`||H(x1)- H(x1)|| < ε`

Where the norm denotes the Hamming distance of two strings and ε is a small constant, in our case 1. This assumption is strongly supported by the fact that a hash function is cryptographically secure; if this equation did not hold, a collision would have been found, modulo one bit, which indicates the hash is broken up to almost all of its bits.

Under this assumption for H = RIPEMD160, our schema asks for the burner to take the ECDSA public key associated with their OpenBazaar identity and turn it into a bitcoin address by following the regular schema for 1-prefixed bitcoin addresses. Regular bitcoin addresses are generated from regular bitcoin ECDSA keys as shown in [the standard bitcoin address generation algorithm](https://en.bitcoin.it/wiki/File:PubKeyToAddr.png).

To generate an address that is provably unspendable, the burner starts with their ECDSA OpenBazaar public key and applies the same process. However, the burner perturbates the first SHA256 hash by one bit before piping it to the RIPEMD160 hash. Specifically, they flip the last bit of the hash output. The rest of the process follows identically. Finally, the burner transfers the amount of coin they wish to burn to this generated address. I will now illustrate the properties of correctness, uniqueness, and security for this scheme.

**Correctness**. To verify the correctness of the burn, a third party performs the same transformation as the burner. They begin from the public ECDSA key of the OpenBazaar node whose trust they wish to verify and follow the bitcoin address generation process, applying the same perturbation as the burner after the SHA256 stage. Arriving at the final bitcoin address, the verifier then checks the blockchain for money that was sent to this address. This concludes that the burn an honest burner performs will be correctly verified by an honest verifier. (This is a significant advantage when compared to alternative schemes that do not contain why-burned information such as nothing-up-my-sleeve addresses.)

**Uniqueness**. Under the assumption that RIPEMD160 is hard to reverse and the fact that SHA256 is a cryptographically secure hash function, assumptions already made by bitcoin, the uniqueness of burn address for each OpenBazaar key follows directly.

**Security**. For this scheme to be secure, we must prove that the burned money cannot actually be spent by anyone. Indeed, if the money were spendable, the spender would have to know the private key associated with a public key which hashes to the perturbed SHA256 value. However, this would allow the generation of an almost-collision in RIPEMD160, as the public key that can be used for spending the burned money and the public key of the OpenBazaar identity would constitute pre-images of hashes that only differ by one bit. From the almost-collision resistance assumption, we conclude that this is computationally infeasible.

The almost-collision method of coin burning introduces scalability challenges for the bitcoin software. We were not concerned with such challenges in OpenBazaar for two reasons. First, we felt a failure for bitcoin to scale given the massive motivated community use of our primitive constitutes a security problem for bitcoin itself, which must be addressed without requiring players to behave fairly to the system. This is a problem for bitcoin, not OpenBazaar. If bitcoin is susceptible to denial-of-service attacks with such means, the use of bitcoin as a payment system must be reconsidered.

Second, most importantly because we support the bitcoin ecosystem and wish to provide suggestions for solving its scalability issues, they can in fact be eliminated if proof-of-burn transactions are accompanied by the pre-image before perturbation. The accompanying pre-image constitutes proof that the money is unspendable, similar to the way OP-RETURN scripts constitute proof of unspendability. As these pre-images will be publicly available on the OpenBazaar network, in case OpenBazaar becomes largely adopted, full bitcoin nodes can utilize the OpenBazaar network to detect prunable UTXO outputs which perform proof-of-burn through almost-collision pay-to-pubkey-hash scripts. Regardless, the optimizability of the payment network is of little concern to its financially motivated users and its technical implementation details remain an open research problem.

Overall, however, once the OP\_RETURN method becomes a usable alternative, the other methods of burning should be eliminated for elegance and scalability.


---

### Answer by username_6 on 2014-01-25. Score: 0

You may generate address with [`vanitygen`](https://github.com/samr7/vanitygen) or [`vanitygen-plus`](https://github.com/exploitagency/vanitygen-plus), and ignore the *private key*. Read more about it here: <https://en.bitcoin.it/wiki/Vanitygen>

E.g.

```
$ ./vanitygen 1Love
Difficulty: 4476342
[48165 K/s][total 2080000][Prob 37.2%][50% in 21.2s]                           
Pattern: 1Love
Address: 1LoveRg5t2NCDLUZh6Q8ixv74M5YGVxXaN
Privkey: 5JLUmjZiirgziDmWmNprPsNx8DYwfecUNk1FQXmDPaoKB36fX1o

```

Just use the `Address`, don't save the `Privkey`.

> **Comments:**
> **username_7**: This fails the "How can an address for bitcoin destruction be selected that everyone can be reasonably sure no-one's going to know the private keys to spend the destroyed bitcoins?" requirement. How do I know that you didn't save the private key, or remember it?  

---

### Answer by username_7 on 2014-05-26. Score: 0

An alternative to generating an address is to use a valid address known to be almost impossible to retrieve coins from i.e. <https://blockchain.info/address/1BitcoinEaterAddressDontSendf59kuE>.

This is a good as destroyed because if anyone could reverse engineer the private key for this address, then due to the vanity length, they could use the same method to reverse engineer the private key for any address. Or they were lucky in the same way as winning the lottery jackpot each week for a year is lucky.


---

