<?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=Sysadmin</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=Sysadmin"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Sysadmin"/>
	<updated>2026-06-12T06:28:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=MediaWiki:Vector.css&amp;diff=70829</id>
		<title>MediaWiki:Vector.css</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=MediaWiki:Vector.css&amp;diff=70829"/>
		<updated>2025-10-22T19:13:37Z</updated>

		<summary type="html">&lt;p&gt;Sysadmin: Removed link to a non-existent font file&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;/* CSS placed here will affect users of the Vector skin */&lt;br /&gt;
div#content #firstHeading,&lt;br /&gt;
div#content h1,&lt;br /&gt;
div#content h2,&lt;br /&gt;
div#content h3,&lt;br /&gt;
div#content h4,&lt;br /&gt;
div#content h5,&lt;br /&gt;
div#content h6,&lt;br /&gt;
dt {&lt;br /&gt;
font-family: &amp;quot;Ubuntu&amp;quot;, &amp;quot;Linux Libertine&amp;quot;, &amp;quot;Georgia&amp;quot;, &amp;quot;Times&amp;quot;, serif;&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Sysadmin</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Message_signing&amp;diff=70820</id>
		<title>Message signing</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Message_signing&amp;diff=70820"/>
		<updated>2025-09-25T13:40:44Z</updated>

		<summary type="html">&lt;p&gt;Sysadmin: Fixed formatting for the example of an RFC2440-like signature&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Message signing&#039;&#039;&#039; is the action of signing a cryptographic message using a private key and its associated address, to prove that you have access to the address. These messages can be verified by wallets by checking the signature against the address to see if they correspond to each other. The result of message signing is often called a &#039;&#039;&#039;signed message&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Bitcoin signed messages have three parts, which are the &#039;&#039;&#039;Message&#039;&#039;&#039;, &#039;&#039;&#039;Address&#039;&#039;&#039;, and &#039;&#039;&#039;Signature&#039;&#039;&#039;. The message is the actual message text - all kinds of text is supported, but it is recommended to avoid using non-ASCII characters in the signature because they might be encoded in different character sets, preventing signature verification from succeeding.&lt;br /&gt;
&lt;br /&gt;
The address is a legacy, nested segwit, or native segwit address. Message signing from legacy addresses was added by Satoshi himself and therefore does not have a BIP. Message signing from segwit addresses has been added by BIP137&amp;lt;ref&amp;gt;https://github.com/bitcoin/bips/blob/master/bip-0137.mediawiki - BIP 137&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The Signature is a base64-encoded ECDSA signature that, when decoded, with fields described in the next section.&lt;br /&gt;
&lt;br /&gt;
As of this writing, there is no message signing support for Taproot addresses. Not only do they use a different signing algorithm in the form of Schnorr, but public key recovery is not possible with Schnorr signatures, so they cannot be compared to addresses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Displaying signed messages ==&lt;br /&gt;
&lt;br /&gt;
Two formats are available to display and process the signed message:&lt;br /&gt;
# Bitcoin-QT format, where the Message, Address, and Signature are displayed and processed separately. (It is named Bitcoin-QT for legacy reasons.)&lt;br /&gt;
# RFC2440-like format, which will be described below.&lt;br /&gt;
&lt;br /&gt;
The RFC2440-like format has the following structure, where Message, Address, and Signature are as defined at the beginning of this section:&lt;br /&gt;
&lt;br /&gt;
 -----BEGIN BITCOIN SIGNED MESSAGE-----&lt;br /&gt;
 Message&lt;br /&gt;
 -----BEGIN BITCOIN SIGNATURE-----&lt;br /&gt;
 Address&lt;br /&gt;
 Signature&lt;br /&gt;
 -----END BITCOIN SIGNATURE-----&lt;br /&gt;
&lt;br /&gt;
The text must begin with &amp;quot;-----BEGIN BITCOIN SIGNED MESSAGE-----&amp;quot;, including the 5 ASCII dashes on both the beginning and end of the line, followed by the Message, followed by &amp;quot;-----BEGIN BITCOIN SIGNATURE-----&amp;quot; along with the dashes similarly, followed by the Address, followed by the Signature, followed by &amp;quot;-----END BITCOIN SIGNATURE-----&amp;quot; with the dashes. All components must be separated by a newline (CRLF, LF, or CR).&lt;br /&gt;
&lt;br /&gt;
== Detailed specification of the message signature ==&lt;br /&gt;
&lt;br /&gt;
ECDSA signatures generate a 32-byte r-value and a 32-byte s-value (see [[Elliptic Curve Digital Signature Algorithm]]), which collectively represent the signature. Bitcoin signatures have the r and s values mentioned above, and a 1-byte header. Therefore, the size of a signature is 65 bytes.&lt;br /&gt;
&lt;br /&gt;
The header is used to specify information about the signature. It can be thought of as a bitmask with each bit in this byte having a meaning. The serialization format of a Bitcoin signature is as follows:&lt;br /&gt;
&lt;br /&gt;
(1 byte for header data)(32 bytes for r-value)(32 bytes for s-value)&lt;br /&gt;
&lt;br /&gt;
The header byte has a few components to it. First, it stores something known as the recID. This value is stored in the least significant 2 bits of the header, and uniquely identifies the correct signature for the signing public key. The lower bit represents the parity of the Y coordinate of the signature - even or odd - and the higher bit represents the correct r-value: &#039;r&#039; or &#039;n+r&#039;. For a rare subset of signatures which have r&amp;gt;=p-n, the only possible r-value will be &#039;r&#039;, thus the highest bit of the recID should be zero.&lt;br /&gt;
&lt;br /&gt;
The following list demonstrates the correct signature corresponding to the value of recID:&lt;br /&gt;
&lt;br /&gt;
* 0: even Y, r = r&lt;br /&gt;
* 1: odd Y, r = r&lt;br /&gt;
* 2: even Y, r = n+r&lt;br /&gt;
* 3: odd Y, r = n+r&lt;br /&gt;
&lt;br /&gt;
The remaining bytes of the header format must be read together to fetch the correct address format. The original message signing format by Satoshi defined the following ranges for address types:&lt;br /&gt;
&lt;br /&gt;
* Header byte is 27-30: P2PKH uncompressed&lt;br /&gt;
* Header byte is 31-34: P2PKH compressed&lt;br /&gt;
&lt;br /&gt;
BIP137 additionally defines the following ranges for compressed segwit address types:&lt;br /&gt;
&lt;br /&gt;
* Header byte is 35-38: P2WPKH-P2SH compressed&lt;br /&gt;
* Header byte is 39-42: P2WPKH compressed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Algorithm for signing and verifying messages ==&lt;br /&gt;
&lt;br /&gt;
Below is a list of instructions for creating a BIP137-compliant message signing and verification algorithm.&lt;br /&gt;
&lt;br /&gt;
It is not required, but you should strip trailing newlines from the message before signing it, because some clients cannot process messages that contain trailing newlines.&lt;br /&gt;
&lt;br /&gt;
Below is a list of steps for signing and verifying a message, for each supported address type.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Definitions used in the algorithms ===&lt;br /&gt;
&lt;br /&gt;
Modulo is written as &#039;&#039;mod&#039;&#039;, for example &#039;&#039;x&#039;&#039; modulo &#039;&#039;n&#039;&#039; is written as &#039;&#039;x mod n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Byte concatenation is written as &#039;&#039;||&#039;&#039; and implies that both operands shall be cast to byte arrays before concatenation.&lt;br /&gt;
&lt;br /&gt;
Array subscripting for byte arrays is written as &#039;&#039;x[i:j]&#039;&#039; and should be interpreted to create a copy of the byte array &#039;&#039;x&#039;&#039; of length &#039;&#039;(j-i)&#039;&#039; with the &#039;&#039;i&#039;&#039;-th byte as the first byte and the &#039;&#039;(j-1)&#039;&#039;-th byte as the last byte (&#039;&#039;i &amp;amp;ge; 0&#039;&#039;, &#039;&#039;j &amp;amp;ge; 0&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
Floor division is written as &#039;&#039;/&#039;&#039; and involves truncating the floating-point remainder from the division result.&lt;br /&gt;
&lt;br /&gt;
Modular inverse is written as &#039;&#039;modinv(x,n)&#039;&#039;, where &#039;&#039;n&#039;&#039; is a constant, variable, or expression, and is equivalent to &#039;&#039;x^-1 mod p&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Modular exponentiation is written as &#039;&#039;x^n&#039;&#039; where n is a constant, variable, or expression, and does not include modulus. The modulus must be explicitly specified using &#039;&#039;mod&#039;&#039; eg. &#039;&#039;x^2 mod n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Bitwise AND is written as &#039;&#039;AND&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Bitwise XOR is written as &#039;&#039;XOR&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Hexadecimal byte arrays are represented as &#039;&#039;hex(byte sequence)&#039;&#039;, where the byte sequence consists of sequences of two hexadecimal characters which may or may not be separated by space (for example &#039;&#039;hex(01 02)&#039;&#039; and &#039;&#039;hex(0102)&#039;&#039; both generate the byte array identical to the evaluation of &#039;\x01\x02&#039; in the C programming language). There is no leading &#039;0x&#039; or &#039;0X&#039; in the output.&lt;br /&gt;
&lt;br /&gt;
Cast from byte array or byte sequence to 256-bit integer is represented as &#039;&#039;int(x)&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Cast from string or 256-bit integer to byte array is represented as &#039;&#039;bytes(x)&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Construction of a point with an x-coordinate &#039;&#039;x&#039;&#039; and y-coordinate &#039;&#039;y&#039;&#039; is represented as &#039;&#039;(x, y)&#039;&#039; and implies that both &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; will be cast to integers before point construction.&lt;br /&gt;
&lt;br /&gt;
For a point &#039;&#039;P&#039;&#039;, its x-coordinate is represented as &#039;&#039;P.x&#039;&#039;, and its y-coordinate is represented as &#039;&#039;P.y&#039;&#039;. All coordinates have &lt;br /&gt;
&lt;br /&gt;
Test for whether a y-coordinate of a point is even is written has &#039;&#039;is_even(y)&#039;&#039; for integers. &#039;&#039;is_even(P)&#039;&#039; is equivalent to &#039;&#039;is_even(P.y)&#039;&#039;. This function is identical to computing &#039;&#039;y AND 1 == 0&#039;&#039; or &#039;&#039;y mod 2 == 0&#039;&#039;, because odd numbers represent negative Y coordinates, which is the actual basis for even/odd classification.&lt;br /&gt;
&lt;br /&gt;
For brevity, &#039;&#039;is_odd(P)&#039;&#039; and &#039;&#039;is_odd(P.y)&#039;&#039; is equivalent to &#039;&#039;!is_even(P)&#039;&#039; and &#039;&#039;!is_even(y)&#039;&#039; respectively.&lt;br /&gt;
&lt;br /&gt;
UTF-8 strings are represented as &#039;&#039;&amp;quot;text&amp;quot;&#039;&#039;, where &#039;&#039;text&#039;&#039; is the desired text. It should be noted that all string constants in this document contain only ASCII characters.&lt;br /&gt;
&lt;br /&gt;
=== Constants ===&lt;br /&gt;
&lt;br /&gt;
The constant &#039;&#039;Inf&#039;&#039; shall refer to the point at infinity, of the secp256k1 curve.&lt;br /&gt;
&lt;br /&gt;
The constant &#039;&#039;p&#039;&#039; shall refer to the secp256k1 field size, aka. curve characteristic, defined as &#039;&#039;int(FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE FFFFFC2F)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The constant &#039;&#039;n&#039;&#039; shall refer to the secp256k1 curve order, defined as &#039;&#039;int(FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The constant &#039;&#039;G&#039;&#039; shall refer to the secp256k1 generator point, defined as &#039;&#039;(79BE667E F9DCBBAC 55A06295 CE870B07 029BFCDB 2DCE28D9 59F2815B 16F81798, 483ADA77 26A3C465 5DA4FBFC 0E1108A8 FD17B448 A6855419 9C47D08F FB10D4B8)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Message signing method ===&lt;br /&gt;
&lt;br /&gt;
It takes the following parameters:&lt;br /&gt;
&lt;br /&gt;
* The private key (PrivateKey)&lt;br /&gt;
* The public key (PublicKey) (optional, if performance is desired)&lt;br /&gt;
* The address (Address)&lt;br /&gt;
* The message (Message)&lt;br /&gt;
&lt;br /&gt;
==== ECDSA signing, with P2PKH uncompressed addresses ====&lt;br /&gt;
&lt;br /&gt;
# Compute &#039;&#039;z = SHA256(Message)&#039;&#039;&lt;br /&gt;
# Generate a cryptographically secure random nonce &#039;&#039;k&#039;&#039; between &#039;&#039;1&#039;&#039; and &#039;&#039;n-1&#039;&#039;. This can be implemented by generating four 64-bit random unsigned integers. If the resulting integer is out of range (e.g. it&#039;s &#039;&#039;0&#039;&#039; or &amp;amp;ge; &#039;&#039;n&#039;&#039;), then discard the entire nonce and generate its entirety all over again. This is to avoid attacks on specific parts of the nonce.&lt;br /&gt;
# Compute &#039;&#039;(x,y) = G*k&#039;&#039;&lt;br /&gt;
# If &#039;&#039;r mod n == 0&#039;&#039; or &#039;&#039;(x,y) == Inf&#039;&#039;, go back to step 3.&lt;br /&gt;
# Compute &#039;&#039;s = modinv(k) * (z + r * PrivateKey) mod n&#039;&#039;. If &#039;&#039;s == 0&#039;&#039;, go back to step 3.&lt;br /&gt;
# Compute the header byte. If &#039;&#039;r &amp;amp;lt; p-n&#039;&#039; and &#039;&#039;is_even(y)&#039;&#039;, set HeaderByte to 30. If &#039;&#039;r &amp;amp;lt; p-n&#039;&#039; and &#039;&#039;is_odd(y)&#039;&#039;, set HeaderByte to 27. If &#039;&#039;r &amp;amp;ge; p-n&#039;&#039; and &#039;&#039;is_even(y)&#039;&#039;, set HeaderByte to 28. If &#039;&#039;r &amp;amp;ge; p-n&#039;&#039; and &#039;&#039;is_odd(y)&#039;&#039;, set HeaderByte to 29. &lt;br /&gt;
# Compute &#039;&#039;Signature=Base64Encode(HeaderByte || r || s)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== ECDSA signing, with P2PKH compressed addresses ====&lt;br /&gt;
&lt;br /&gt;
# Compute &#039;&#039;z = SHA256(Message)&#039;&#039;&lt;br /&gt;
# Generate a cryptographically secure random nonce &#039;&#039;k&#039;&#039; between &#039;&#039;1&#039;&#039; and &#039;&#039;n-1&#039;&#039;. This can be implemented by generating four 64-bit random unsigned integers. If the resulting integer is out of range (e.g. it&#039;s &#039;&#039;0&#039;&#039; or &amp;amp;ge; &#039;&#039;n&#039;&#039;), then discard the entire nonce and generate its entirety all over again. This is to avoid attacks on specific parts of the nonce.&lt;br /&gt;
# Compute &#039;&#039;(x,y) = G*k&#039;&#039;&lt;br /&gt;
# If &#039;&#039;r mod n == 0&#039;&#039; or &#039;&#039;(x,y) == Inf&#039;&#039;, go back to step 3.&lt;br /&gt;
# Compute &#039;&#039;s = modinv(k, n) * (z + r * PrivateKey) mod n&#039;&#039;. If &#039;&#039;s == 0&#039;&#039;, go back to step 3.&lt;br /&gt;
# Compute the header byte. If &#039;&#039;r &amp;amp;lt; p-n&#039;&#039; and &#039;&#039;is_even(y)&#039;&#039;, set HeaderByte to 34. If &#039;&#039;r &amp;amp;lt; p-n&#039;&#039; and &#039;&#039;is_odd(y)&#039;&#039;, set HeaderByte to 31. If &#039;&#039;r &amp;amp;ge; p-n&#039;&#039; and &#039;&#039;is_even(y)&#039;&#039;, set HeaderByte to 32. If &#039;&#039;r &amp;amp;ge; p-n&#039;&#039; and &#039;&#039;is_odd(y)&#039;&#039;, set HeaderByte to 31.&lt;br /&gt;
# Compute &#039;&#039;Signature=Base64Encode(HeaderByte || r || s)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== ECDSA signing, with P2WPKH-P2SH compressed addresses ====&lt;br /&gt;
&lt;br /&gt;
# Compute &#039;&#039;z = SHA256(Message)&#039;&#039;&lt;br /&gt;
# Generate a cryptographically secure random nonce &#039;&#039;k&#039;&#039; between &#039;&#039;1&#039;&#039; and &#039;&#039;n-1&#039;&#039;. This can be implemented by generating four 64-bit random unsigned integers. If the resulting integer is out of range (e.g. it&#039;s &#039;&#039;0&#039;&#039; or &amp;amp;ge; &#039;&#039;n&#039;&#039;), then discard the entire nonce and generate its entirety all over again. This is to avoid attacks on specific parts of the nonce.&lt;br /&gt;
# Compute &#039;&#039;(x,y) = G*k&#039;&#039;&lt;br /&gt;
# If &#039;&#039;r mod n == 0&#039;&#039; or &#039;&#039;(x,y) == Inf&#039;&#039;, go back to step 3.&lt;br /&gt;
# Compute &#039;&#039;s = modinv(k, n) * (z + r * PrivateKey) mod n&#039;&#039;. If &#039;&#039;s == 0&#039;&#039;, go back to step 3.&lt;br /&gt;
# Compute the header byte. If &#039;&#039;r &amp;amp;lt; p-n&#039;&#039; and &#039;&#039;is_even(y)&#039;&#039;, set HeaderByte to 38. If &#039;&#039;r &amp;amp;lt; p-n&#039;&#039; and &#039;&#039;is_odd(y)&#039;&#039;, set HeaderByte to 35. If &#039;&#039;r &amp;amp;ge; p-n&#039;&#039; and &#039;&#039;is_even(y)&#039;&#039;, set HeaderByte to 36. If &#039;&#039;r &amp;amp;ge; p-n&#039;&#039; and &#039;&#039;is_odd(y)&#039;&#039;, set HeaderByte to 37. &lt;br /&gt;
# Compute &#039;&#039;Signature=Base64Encode(HeaderByte || r || s)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== ECDSA signing, with P2WPKH compressed addresses ====&lt;br /&gt;
&lt;br /&gt;
# Compute &#039;&#039;z = SHA256(Message)&#039;&#039;&lt;br /&gt;
# Generate a cryptographically secure random nonce &#039;&#039;k&#039;&#039; between &#039;&#039;1&#039;&#039; and &#039;&#039;n-1&#039;&#039;. This can be implemented by generating four 64-bit random unsigned integers. If the resulting integer is out of range (e.g. it&#039;s &#039;&#039;0&#039;&#039; or &amp;amp;ge; &#039;&#039;n&#039;&#039;), then discard the entire nonce and generate its entirety all over again. This is to avoid attacks on specific parts of the nonce.&lt;br /&gt;
# Compute &#039;&#039;(x,y) = G*k&#039;&#039;&lt;br /&gt;
# If &#039;&#039;r mod n == 0&#039;&#039; or &#039;&#039;(x,y) == Inf&#039;&#039;, go back to step 3.&lt;br /&gt;
# Compute &#039;&#039;s = modinv(k, n) * (z + r * PrivateKey) mod n&#039;&#039;. If &#039;&#039;s == 0&#039;&#039;, go back to step 3.&lt;br /&gt;
# Compute the header byte. If &#039;&#039;r &amp;amp;lt; p-n&#039;&#039; and &#039;&#039;is_even(y)&#039;&#039;, set HeaderByte to 42. If &#039;&#039;r &amp;amp;lt; p-n&#039;&#039; and &#039;&#039;is_odd(y)&#039;&#039;, set HeaderByte to 39. If &#039;&#039;r &amp;amp;ge; p-n&#039;&#039; and &#039;&#039;is_even(y)&#039;&#039;, set HeaderByte to 40. If &#039;&#039;r &amp;amp;ge; p-n&#039;&#039; and &#039;&#039;is_odd(y)&#039;&#039;, set HeaderByte to 41. &lt;br /&gt;
# Compute &#039;&#039;Signature=Base64Encode(HeaderByte || r || s)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Message verification method ===&lt;br /&gt;
&lt;br /&gt;
It takes the following parameters:&lt;br /&gt;
&lt;br /&gt;
* The message (Message)&lt;br /&gt;
* The address (Address)&lt;br /&gt;
* An ECDSA signature (Signature)&lt;br /&gt;
&lt;br /&gt;
The Header byte in the signature shall dictate the verification algorithm that is used.&lt;br /&gt;
&lt;br /&gt;
Upon verification success, you should display a status message similar to: &amp;quot;Genuine signed message from address &amp;lt;Address&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Preliminary steps for all verification Algorithms ====&lt;br /&gt;
&lt;br /&gt;
# Set &#039;&#039;DecodedSignature = Base64Decode(Signature)&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;HeaderByte = DecodedSignature[0]&#039;&#039;&lt;br /&gt;
#* If HeaderByte is between 27 and 30 inclusive, use &amp;quot;ECDSA verification, P2PKH uncompressed address&amp;quot;.&lt;br /&gt;
#* Else, if HeaderByte is between 31 and 34 inclusive, use &amp;quot;ECDSA verification, P2PKH compressed address&amp;quot;.&lt;br /&gt;
#* Else, if HeaderByte is between 35 and 38 inclusive, use &amp;quot;ECDSA verification, P2WPKH-P2SH compressed address&amp;quot;.&lt;br /&gt;
#* Else, if HeaderByte is between 39 and 42 inclusive, use &amp;quot;ECDSA verification, P2WPKH compressed address&amp;quot;.&lt;br /&gt;
#* Else, if HeaderByte is between 43 and 46 inclusive, use &amp;quot;Schnorr verification, P2TR (Taproot) compressed address&amp;quot;.&lt;br /&gt;
#* Else, fail verification with an error similar to &amp;quot;Unknown signature type&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== ECDSA verification, P2PKH uncompressed address ====&lt;br /&gt;
&lt;br /&gt;
# Set &#039;&#039;r = DecodedSignature[1:33]&#039;&#039;. If &#039;&#039;r &amp;amp;ge; n&#039;&#039; or &#039;&#039;r == 0&#039;&#039;, fail verification with an error similar to &amp;quot;Invalid ECDSA signature parameters&amp;quot;.&lt;br /&gt;
# Set &#039;&#039;s = DecodedSignature[33:65]&#039;&#039;. If &#039;&#039;s &amp;amp;ge; n&#039;&#039; or &#039;&#039;s == 0&#039;&#039;, fail verification with an error similar to &amp;quot;Invalid ECDSA signature parameters&amp;quot;.&lt;br /&gt;
# Set &#039;&#039;z = SHA256(Message)&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;recID = Header AND 0x3&#039;&#039;&lt;br /&gt;
# If &#039;&#039;recID AND 0x2 == 0&#039;&#039;, set &#039;&#039;x = r&#039;&#039;, else set &#039;&#039;x = r+n&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;x = (x^3 + 7) mod p&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;y = x^((p+1)/4) mod p&#039;&#039;&lt;br /&gt;
# Calculate the correct parity of &#039;&#039;y&#039;&#039; using the &#039;recID&#039;:&lt;br /&gt;
#* If (&#039;&#039;is_even(beta)&#039;&#039; and &#039;&#039;is_odd(recID)&#039;&#039;) or (&#039;&#039;is_odd(beta) and is_even(recID)&#039;&#039;), set &#039;&#039;y = p-y&#039;&#039;. &lt;br /&gt;
# Set &#039;&#039;R = (x,y)&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;e = (-int(z)) % n&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;PublicKey = (R*s + G*e) * modinv(r, n)&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;EncodedPublicKey = &amp;quot;04&amp;quot; || hex(x) || hex(y)&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;AddressHash = RIPEMD160(SHA256(EncodedPublicKey&#039;&#039;)&lt;br /&gt;
# Compute &#039;&#039;DerivedAddress = Base58Check(hex(00) || AddressHash)&#039;&#039;.&lt;br /&gt;
# If &#039;&#039;DerivedAddress == Address&#039;&#039;, succeed verification. Else fail verification with an error similar to &amp;quot;Wrong address for signature&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== ECDSA verification, P2PKH compressed address ====&lt;br /&gt;
&lt;br /&gt;
# Set &#039;&#039;r = DecodedSignature[1:33]&#039;&#039;. If &#039;&#039;r &amp;amp;ge; n&#039;&#039; or &#039;&#039;r == 0&#039;&#039;, fail verification with an error similar to &amp;quot;Invalid ECDSA signature parameters&amp;quot;.&lt;br /&gt;
# Set &#039;&#039;s = DecodedSignature[33:65]&#039;&#039;. If &#039;&#039;s &amp;amp;ge; n&#039;&#039; or &#039;&#039;s == 0&#039;&#039;, fail verification with an error similar to &amp;quot;Invalid ECDSA signature parameters&amp;quot;.&lt;br /&gt;
# Set &#039;&#039;z = SHA256(Message)&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;recID = Header AND 0x3&#039;&#039;&lt;br /&gt;
# If &#039;&#039;recID AND 0x2 == 0&#039;&#039;, set &#039;&#039;x = r&#039;&#039;, else set &#039;&#039;x = r+n&#039;&#039;.&lt;br /&gt;
# Set &#039;&#039;x = (x^3 + 7) mod p&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;y = x^((p+1)/4) mod p&#039;&#039;&lt;br /&gt;
# Calculate the correct parity of &#039;&#039;y&#039;&#039; using the &#039;recID&#039;:&lt;br /&gt;
#* If (&#039;&#039;is_even(beta)&#039;&#039; and &#039;&#039;is_odd(recID)&#039;&#039;) or (&#039;&#039;is_odd(beta) and is_even(recID)&#039;&#039;), set &#039;&#039;y = p-y&#039;&#039;. &lt;br /&gt;
# Set &#039;&#039;R = (x,y)&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;e = (-int(z)) % n&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;PublicKey = (R*s + G*e) * modinv(r, n)&#039;&#039;&lt;br /&gt;
# If &#039;&#039;is_even(y)&#039;&#039;, compute &#039;&#039;EncodedPublicKey = &amp;quot;02&amp;quot; || hex(x)&#039;&#039;. Else, compute &#039;&#039;EncodedPublicKey = &amp;quot;03&amp;quot; || hex(x)&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;AddressHash = RIPEMD160(SHA256(EncodedPublicKey)&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;DerivedAddress = Base58Check(hex(00) || AddressHash)&#039;&#039;&lt;br /&gt;
# If &#039;&#039;DerivedAddress == Address&#039;&#039;, succeed verification. Else fail verification with an error similar to &amp;quot;Wrong address for signature&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== ECDSA verification, P2WPKH-P2SH compressed address ====&lt;br /&gt;
&lt;br /&gt;
# Set &#039;&#039;r = DecodedSignature[1:33]&#039;&#039;. If &#039;&#039;r &amp;amp;ge; n&#039;&#039; or &#039;&#039;r == 0&#039;&#039;, fail verification with an error similar to &amp;quot;Invalid ECDSA signature parameters&amp;quot;.&lt;br /&gt;
# Set &#039;&#039;s = DecodedSignature[33:65]&#039;&#039;. If &#039;&#039;s &amp;amp;ge; n&#039;&#039; or &#039;&#039;s == 0&#039;&#039;, fail verification with an error similar to &amp;quot;Invalid ECDSA signature parameters&amp;quot;.&lt;br /&gt;
# Set &#039;&#039;z = SHA256(Message)&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;recID = Header AND 0x3&#039;&#039;&lt;br /&gt;
# If &#039;&#039;recID AND 0x2 == 0&#039;&#039;, set &#039;&#039;x = r&#039;&#039;, else set &#039;&#039;x = r+n&#039;&#039;.&lt;br /&gt;
# Set &#039;&#039;x = (x^3 + 7) mod p&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;y = x^((p+1)/4) mod p&#039;&#039;&lt;br /&gt;
# Calculate the correct parity of &#039;&#039;y&#039;&#039; using the &#039;recID&#039;:&lt;br /&gt;
#* If (&#039;&#039;is_even(beta)&#039;&#039; and &#039;&#039;is_odd(recID)&#039;&#039;) or (&#039;&#039;is_odd(beta) and is_even(recID)&#039;&#039;), set &#039;&#039;y = p-y&#039;&#039;. &lt;br /&gt;
# Set &#039;&#039;R = (x,y)&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;e = (-int(z)) % n&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;PublicKey = (R*s + G*e) * modinv(r, n)&#039;&#039;&lt;br /&gt;
# If &#039;&#039;is_even(y)&#039;&#039;, compute &#039;&#039;EncodedPublicKey = &amp;quot;02&amp;quot; || hex(x)&#039;&#039;. Else, compute &#039;&#039;EncodedPublicKey = &amp;quot;03&amp;quot; || hex(x)&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;AddressHash = RIPEMD160(SHA256(EncodedPublicKey)&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;RedeemScript = hex(00 14) || AddressHash&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;RedeemScriptHash = RIPEMD160(SHA256(RedeemScript))&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;DerivedAddress = Base58Check(hex(05) || RedeemScriptHash)&#039;&#039;&lt;br /&gt;
# If &#039;&#039;DerivedAddress == Address&#039;&#039;, succeed verification. Else fail verification with an error similar to &amp;quot;Wrong address for signature&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== ECDSA verification, P2WPKH compressed address ====&lt;br /&gt;
&lt;br /&gt;
# Set &#039;&#039;r = DecodedSignature[1:33]&#039;&#039;. If &#039;&#039;r &amp;amp;ge; n&#039;&#039; or &#039;&#039;r == 0&#039;&#039;, fail verification with an error similar to &amp;quot;Invalid ECDSA signature parameters&amp;quot;.&lt;br /&gt;
# Set &#039;&#039;s = DecodedSignature[33:65]&#039;&#039;. If &#039;&#039;s &amp;amp;ge; n&#039;&#039; or &#039;&#039;s == 0&#039;&#039;, fail verification with an error similar to &amp;quot;Invalid ECDSA signature parameters&amp;quot;.&lt;br /&gt;
# Set &#039;&#039;z = SHA256(Message)&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;recID = Header AND 0x3&#039;&#039;&lt;br /&gt;
# If &#039;&#039;recID AND 0x2 == 0&#039;&#039;, set &#039;&#039;x = r&#039;&#039;, else set &#039;&#039;x = r+n&#039;&#039;.&lt;br /&gt;
# Set &#039;&#039;x = (x^3 + 7) mod p&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;y = x^((p+1)/4) mod p&#039;&#039;&lt;br /&gt;
# Calculate the correct parity of &#039;&#039;y&#039;&#039; using the &#039;recID&#039;:&lt;br /&gt;
#* If (&#039;&#039;is_even(beta)&#039;&#039; and &#039;&#039;is_odd(recID)&#039;&#039;) or (&#039;&#039;is_odd(beta) and is_even(recID)&#039;&#039;), set &#039;&#039;y = p-y&#039;&#039;. &lt;br /&gt;
# Set &#039;&#039;R = (x,y)&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;e = (-int(z)) % n&#039;&#039;&lt;br /&gt;
# Set &#039;&#039;PublicKey = (R*s + G*e) * modinv(r, n)&#039;&#039;&lt;br /&gt;
# If &#039;&#039;is_even(y)&#039;&#039;, compute &#039;&#039;EncodedPublicKey = &amp;quot;02&amp;quot; || hex(x)&#039;&#039;. Else, compute &#039;&#039;EncodedPublicKey = &amp;quot;03&amp;quot; || hex(x)&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;AddressHash = RIPEMD160(SHA256(EncodedPublicKey)&#039;&#039;&lt;br /&gt;
# Compute &#039;&#039;DerivedAddress = Bech32(&amp;quot;bc&amp;quot;, 0, AddressHash)&#039;&#039;&lt;br /&gt;
# If &#039;&#039;DerivedAddress == Address&#039;&#039;, succeed verification. Else fail verification with an error similar to &amp;quot;Wrong address for signature&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Alternative formats ==&lt;br /&gt;
&lt;br /&gt;
Work is currently under way to create a new signing format called BIP322&amp;lt;ref&amp;gt;https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki - BIP 322&amp;lt;/ref&amp;gt; that can verify signatures from all types of addresses, including scripts, multisig, and Taproot. It is currently a draft.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>Sysadmin</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Help:FAQ&amp;diff=70812</id>
		<title>Help:FAQ</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Help:FAQ&amp;diff=70812"/>
		<updated>2025-08-30T22:09:51Z</updated>

		<summary type="html">&lt;p&gt;Sysadmin: Fixed formatting, missing capitalization, misplaced punctuation some spelling and small repetition issues&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here you will find answers to the most commonly asked questions.&lt;br /&gt;
&lt;br /&gt;
== General ==&lt;br /&gt;
=== What is Bitcoin? ===&lt;br /&gt;
Bitcoin is a distributed peer-to-peer digital currency that can be transferred instantly and securely between any two people in the world. It&#039;s like electronic cash that you can use to pay friends or merchants. As P2P cash, Bitcoin serves the monetary functions of a &amp;quot;medium of exchange&amp;quot; and occasionally, as a &amp;quot;unit of account&amp;quot;. Bitcoin&#039;s programmatic decaying issuance rate – the operation of [[Controlled supply|a periodic &amp;quot;halving&amp;quot; function]] – further adds the monetary function of a &amp;quot;store of value&amp;quot; against fiat currency systems. Exhibiting three related, but independent monetary qualities, bitcoin presents a transformational form of money detached from centralized financial systems.&lt;br /&gt;
&lt;br /&gt;
=== What are bitcoins? ===&lt;br /&gt;
Bitcoins are the unit of currency of the Bitcoin system. A commonly used shorthand for this is “BTC” to refer to a price or amount (e.g. “100 BTC”).&lt;br /&gt;
There are such things as [[physical bitcoins]], but ultimately, a bitcoin is just a number associated with a [[Address|Bitcoin Address]].  A physical bitcoin is simply an object, such as a coin, with the number carefully embedded inside.  See also an [[Introduction|easy intro]] to Bitcoin.&lt;br /&gt;
&lt;br /&gt;
=== How can I get bitcoins? ===&lt;br /&gt;
&lt;br /&gt;
There are a variety of ways to acquire bitcoins:&lt;br /&gt;
* Accept bitcoins as payment for goods or services.&lt;br /&gt;
* You can buy bitcoins from [https://www.coinbase.com/buy-bitcoin Coinbase], [https://paybis.com/ PayBis], , [https://www.coincorner.com CoinCorner], [https://circle.com Circle].&lt;br /&gt;
* The most common way to buy bitcoins are the [[Buying bitcoins|Bitcoin Exchanges]]. &lt;br /&gt;
* There are several services where you can [[Buying_Bitcoins_(the_noob_version)|trade them]] for traditional currency. There are price comparison websites where you can compare prices at various exchanges, brokers, and dealers, for example, [https://exchangerates.pro ExchangeRates.Pro]&lt;br /&gt;
* You can also buy bitcoins using [http://nationalbitcoinatm.com Bitcoin ATMs] that are locally in your area.&lt;br /&gt;
* Find someone to trade cash for bitcoins in-person through a [https://en.bitcoin.it/wiki/Category:Directories local directory].&lt;br /&gt;
* Participate in a [[Pooled mining|mining pool]].&lt;br /&gt;
* If you have a lot of mining hardware, you can solo mine and attempt to create a new [[block]] (currently yields 12.5 bitcoins plus transaction fees).&lt;br /&gt;
* Visit sites that provide [[Trade#Free_Samples_and_Offers|free samples and offers]].&lt;br /&gt;
&lt;br /&gt;
===Does Bitcoin guarantee an influx of free money?===&lt;br /&gt;
&lt;br /&gt;
Since Bitcoin is a new technology, what it is and how it works may be initially unclear.  Bitcoin is sometimes presented as being one of three things:&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: upper-alpha;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Some sort of online &#039;get-rich-quick&#039; scam.&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;A loophole in the market economy, the installation of which guarantees a steady influx of cash.&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;A sure investment that will almost certainly yield a profit.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
In fact, none of the above are true.  Let&#039;s look at them independently.&lt;br /&gt;
&lt;br /&gt;
;Is Bitcoin a &#039;get-rich-quick&#039; scheme?&lt;br /&gt;
:If you&#039;ve spent much time on the Internet, you&#039;ve probably seen ads for many &#039;get-rich-quick&#039; schemes. These ads usually promise huge profits for a small amounts of easy work.  Such schemes are usually pyramid/matrix-style schemes that make money from their own employees and offer nothing of any real value.  Most convince one to buy packages that will make them earn hundreds a day, which in fact  have the buyer distribute more such ads, and make minute profits.&lt;br /&gt;
&lt;br /&gt;
:Bitcoin is in no way similar to these schemes. Bitcoin doesn&#039;t promise windfall profits. There is no way for the developers to make money from your involvement or to take money from you. That bitcoins are nearly impossible to acquire without the owner&#039;s consent represents one of its greatest strengths.  Bitcoin is an experimental, virtual currency that may succeed or may fail. None of its developers expect to get rich off of it. &lt;br /&gt;
&lt;br /&gt;
:A more detailed answer to this question can be found [http://bitcointalk.org/?topic=7815.0 here].&lt;br /&gt;
&lt;br /&gt;
;Will I make money by installing the client?&lt;br /&gt;
:Most people who use Bitcoin don&#039;t earn anything by doing so, and the default client has no built-in way to earn Bitcoins.  A small minority of people with dedicated, high-performance hardware do earn some Bitcoins by &amp;quot;&#039;&#039;mining&#039;&#039;&amp;quot; (generating new bitcoins, see [[#What is mining?|What is mining?]]) with special software, but joining Bitcoin shouldn&#039;t be construed as being the road to riches.  Most Bitcoin users get involved because they find the project conceptually interesting and don&#039;t earn anything by doing so.  This is also why you won&#039;t find much speculation about the political or economic repercussions of Bitcoin anywhere on this site: Bitcoin developers owe their dedication to the project&#039;s intellectual yieldings more than to those of a monetary nature.  Bitcoin is still taking its first baby steps; it may go on to do great things but right now it only has something to offer those chasing conceptually interesting projects or bleeding edge technology.&lt;br /&gt;
&lt;br /&gt;
;As an investment, is Bitcoin a sure thing?&lt;br /&gt;
:Bitcoin is a new and interesting electronic currency, the value of which is not backed by any single government or organization.  Like other currencies, it is worth something partly because people are willing to trade it for goods and services. Its exchange rate fluctuates continuously, and sometimes wildly. It lacks wide acceptance and is vulnerable to manipulation by parties with modest funding. Security incidents such as website and account compromise may trigger major sell-offs. Other fluctuations can build into positive feedback loops and cause much larger exchange rate fluctuations. Anyone who puts money into Bitcoin should understand the risk they are taking and consider it a high-risk currency. Later, as Bitcoin becomes better known and more widely accepted, it may stabilize, but for the time being it is unpredictable. Any investment in Bitcoin should be done carefully and with a clear plan to manage the risk.&lt;br /&gt;
&lt;br /&gt;
=== Can I buy bitcoins with Paypal? ===&lt;br /&gt;
&lt;br /&gt;
It is possible to buy [[physical bitcoins]] with PayPal but it is otherwise difficult and/or expensive to do so for non-physical bitcoins, because of significant risk to the seller. &lt;br /&gt;
&lt;br /&gt;
While it is possible to find an individual who wishes to sell Bitcoin to you via Paypal, (perhaps via [http://www.bitcoin-otc.com/ #bitcoin-otc] ) most exchanges do not allow funding through PayPal. This is due to repeated cases where someone pays for bitcoins with Paypal, receives their bitcoins, and then fraudulently complains to Paypal that they never received their purchase. PayPal often sides with the fraudulent buyer in this case, which means any seller needs to cover that risk with higher fees or refuse to accept PayPal altogether.&lt;br /&gt;
&lt;br /&gt;
Buying Bitcoins from individuals this way is still possible, but requires the seller to have some trust that the buyer will not file a claim with PayPal to reverse the payment.&lt;br /&gt;
&lt;br /&gt;
In November 2020, PayPal announced that all account holders in the US would be able to buy and sell cryptocurrencies including Bitcoin through its platform. The news followed its announcement in October 2020 that it would introduce options for cryptocurrency buying and selling, through a partnership with Paxos Crypto Brokerage.&lt;br /&gt;
&lt;br /&gt;
Also [https://paybis.com/ PayBis] allows you to buy Bitcoins with PayPal. You may find other exchanges and individuals willing to accept Paypal for Bitcoins at [https://exchangerates.pro ExchangeRates.Pro], price comparison of cryptocurrency exchanges and p2p market.&lt;br /&gt;
&lt;br /&gt;
=== Where can I find a forum to discuss Bitcoin? ===&lt;br /&gt;
&lt;br /&gt;
Please visit the  [[Bitcoin Wiki:Community_portal#Bitcoin_Community_Forums_on_various_platforms|Community Portal]] for links to Bitcoin-related forums.&lt;br /&gt;
&lt;br /&gt;
=== How are new bitcoins created? ===&lt;br /&gt;
&lt;br /&gt;
New bitcoins are generated by the network through the process of &amp;quot;[[#What is mining?|&#039;&#039;mining&#039;&#039;]]&amp;quot;. In a process that is similar to a continuous raffle draw, mining nodes on the network are awarded bitcoins each time they find the solution to a certain mathematical problem (and thereby create a new [[block]]). Creating a block is a [[proof of work]] with a difficulty that varies with the overall strength of the network.  The reward for solving a block is [[Controlled Currency Supply|automatically adjusted]] so that, ideally, every four years of operation of the Bitcoin network, half the amount of bitcoins created in the prior 4 years are created. A maximum of {{formatnum:10499889.80231183}} bitcoins were created in the first 4 (approx.) years from January 2009 to November 2012.  Every four years thereafter this amount halves, so it should be {{formatnum:5250000}} over years 4-8, {{formatnum:2625000}} over years 8-12, and so on. Thus the total number of bitcoins in existence can never exceed {{formatnum:20999839.77085749}} and counting. See [[Controlled Currency Supply]].&lt;br /&gt;
&lt;br /&gt;
Blocks are [[Mining|mined]] every 10 minutes, on average and for the first four years ({{formatnum:210000}} blocks) each block included 50 new bitcoins.  As the amount of processing power directed at mining changes, the difficulty of creating new bitcoins changes.  This difficulty factor is calculated every 2016 blocks and is based upon the time taken to generate the previous 2016 blocks. See [[Mining]].&lt;br /&gt;
&lt;br /&gt;
=== What&#039;s the current total number of bitcoins in existence?  ===&lt;br /&gt;
&lt;br /&gt;
[http://blockexplorer.com/q/totalbc Current count]. Also see [https://blockchain.info/charts/total-bitcoins Total bitcoins in circulation chart]&lt;br /&gt;
&lt;br /&gt;
The number of blocks times the coin value of a block is the number of coins in existence. The coin value of a block is 50 BTC for each of the first {{formatnum:210000}} blocks, 25 BTC for the next {{formatnum:210000}} blocks, then 12.5 BTC, 6.25 BTC and so on.&lt;br /&gt;
&lt;br /&gt;
=== How divisible are bitcoins?  ===&lt;br /&gt;
&lt;br /&gt;
A bitcoin can be divided down to 8 decimal places. Therefore, 0.00000001 BTC is the smallest amount that can be handled in a transaction. If necessary, the protocol and related software can be modified to handle even smaller amounts.&lt;br /&gt;
&lt;br /&gt;
=== What do I call the various denominations of bitcoin? ===&lt;br /&gt;
&lt;br /&gt;
Unlike most currencies, Bitcoin amounts are highly divisible. This has led to a desire to create names for smaller denominations of bitcoin amounts, especially since transactions involving whole bitcoins are no longer quite so common. Bitcoin is decentralized, so there is no organization that can set official names for units. Therefore, there are many different units with varying degrees of popularity. As of 2014, the most common units are bitcoins, bits, and satoshi: 1 bitcoin = 1 000 000.00 bits = 100 000 000 satoshi.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;bitcoin&#039;&#039;&#039; (abbreviated &#039;&#039;&#039;BTC&#039;&#039;&#039; or &#039;&#039;&#039;XBT&#039;&#039;&#039;) is the unit that was used in the original Bitcoin wallet software created by [[Satoshi Nakamoto]]. There is nothing particularly special about this unit, but it is by far the most common unit due to tradition.&lt;br /&gt;
&lt;br /&gt;
The smallest value that the Bitcoin network supports sending is the &#039;&#039;&#039;[[satoshi (unit)|satoshi]]&#039;&#039;&#039; (sometimes abbreviated &#039;&#039;&#039;sat&#039;&#039;&#039;), one hundred-millionth (0.000 000 01) of a bitcoin. In other words, the network does not support sending fractions of a satoshi. Since it is a hard limit, it seems natural to use it as a unit, though it currently has very little value. The unit was named in honor of Bitcoin&#039;s creator after he left -- he was not so vain as to name a unit after himself. The plural of satoshi is satoshi: &amp;quot;Send me 100 satoshi&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Another common unit is the &#039;&#039;&#039;[[bit (unit)|bit]]&#039;&#039;&#039;, one millionth (0.000 001) of a bitcoin. This unit is the same as a microbitcoin (μBTC). Bits are seen by some as especially logical because they have two-decimal precision like most fiat currencies. You can send 1.23 bits, but not 1.234 bits due to the network&#039;s limited precision.&lt;br /&gt;
&lt;br /&gt;
It is also fairly common to use SI prefixes:&lt;br /&gt;
&lt;br /&gt;
* 0.01 BTC = 1 cBTC = 1 centibitcoin (also referred to as bitcent)&lt;br /&gt;
* 0.001 BTC = 1 mBTC = 1 millibitcoin (also referred to as mbit (pronounced em-bit) or millibit or even bitmill)&lt;br /&gt;
* 0.000 001 BTC = 1 μBTC = 1 microbitcoin (also referred to as ubit (pronounced yu-bit) or microbit)&lt;br /&gt;
&lt;br /&gt;
For an overview of all proposed units of Bitcoin (including less common and niche units), see [[Units]].&lt;br /&gt;
&lt;br /&gt;
Further discussion on this topic can be found on the forums here:&lt;br /&gt;
&lt;br /&gt;
* [https://bitcointalk.org/index.php?topic=14438.msg195287#msg195287 We need names]&lt;br /&gt;
* [https://bitcointalk.org/index.php?topic=8282.0 What to call 0.001 BTC]&lt;br /&gt;
&lt;br /&gt;
=== How does the halving work when the number gets really small? ===&lt;br /&gt;
&lt;br /&gt;
Eventually the reward will go from 0.00000001 BTC to zero and no more bitcoins will be created.  &lt;br /&gt;
&lt;br /&gt;
The block reward calculation is done as a right bitwise shift of a 64-bit signed integer, which means it is divided by two and rounded down. The integer is equal to the value in BTC * 100,000,000 since internally in the reference client software, all Bitcoin balances and values are stored as unsigned integers.&lt;br /&gt;
&lt;br /&gt;
With an initial block reward of 50 BTC, it will take many 4-year periods for the block reward to reach zero.&lt;br /&gt;
&lt;br /&gt;
=== How long will it take to generate all the coins? ===&lt;br /&gt;
&lt;br /&gt;
The last block that will generate coins will be block #6,929,999 which should be generated at or near the year 2140. The total number of coins in circulation will then remain static at 20,999,999.9769 BTC.&lt;br /&gt;
&lt;br /&gt;
Even if the allowed precision is expanded from the current 8 decimals, the total BTC in circulation will always be slightly below 21 million (assuming everything else stays the same). For example, with 16 decimals of precision, the end total would be 20,999,999.999999999496 BTC.&lt;br /&gt;
&lt;br /&gt;
=== If no more coins are going to be generated, will more blocks be created? ===&lt;br /&gt;
&lt;br /&gt;
Absolutely!  Even before the creation of coins ends, the use of [[transaction fee|transaction fees]] will likely make creating new blocks more valuable from the fees than the new coins being created.  When coin generation ends, these fees will sustain the ability to use bitcoins and the Bitcoin network. There is no practical limit on the number of blocks that will be mined in the future.&lt;br /&gt;
&lt;br /&gt;
=== But if no more coins are generated, what happens when Bitcoins are lost? Won&#039;t that be a problem? ===&lt;br /&gt;
&lt;br /&gt;
Because of the law of supply and demand, when fewer bitcoins are available the ones that are left will be in higher demand, and therefore will have a higher value. So, as Bitcoins are lost, the remaining bitcoins will eventually increase in value to compensate. As the value of a bitcoin increases, the number of bitcoins required to purchase an item &#039;&#039;&#039;de&#039;&#039;&#039;creases. This is a [[Deflationary spiral|deflationary economic model]]. As the average transaction size reduces, transactions will probably be denominated in sub-units of a bitcoin such as millibitcoins (&amp;quot;Millies&amp;quot;) or microbitcoins (&amp;quot;Mikes&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The Bitcoin protocol uses a base unit of one hundred-millionth of a Bitcoin (&amp;quot;a Satoshi&amp;quot;), but unused bits are available in the protocol fields that could be used to denote even smaller subdivisions.&lt;br /&gt;
&lt;br /&gt;
=== If every transaction is broadcast via the network, does Bitcoin scale? ===&lt;br /&gt;
&lt;br /&gt;
The blockchain base layer is not very scalable but layer-2 technologies can be used to greatly increase bitcoin&#039;s scale. [[Lightning Network]] is one example which uses [[Contracts|smart contracts]] to build a network where payments are routed along a path instead of flooded to every peer. These payments can be nearly as secure and irreversible as blockchain transactions but have much better scalability (as well support instant payments which are much more private). Other possible layer-2 scalability technologies are sidechains or a bitcoin ecash chaumian bank.&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
* [https://www.reddit.com/r/Bitcoin/comments/438hx0/a_trip_to_the_moon_requires_a_rocket_with/ A trip to the moon requires a rocket with multiple stages]&lt;br /&gt;
* [https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-December/011865.html Capacity increases for the Bitcoin system]&lt;br /&gt;
* [[Scalability]].&lt;br /&gt;
&lt;br /&gt;
==Economy==&lt;br /&gt;
=== Where does the value of Bitcoin stem from? What backs up Bitcoin? ===&lt;br /&gt;
Bitcoins have value because they are useful and because they are [[Controlled Currency Supply|scarce]]. As they are accepted by more merchants, their value will [http://en.wikipedia.org/wiki/Sticky_%28economics%29 stabilize]. See the [[Trade|list of Bitcoin-accepting sites]].&lt;br /&gt;
&lt;br /&gt;
When we say that a currency is backed up by gold, we mean that there&#039;s a promise in place that you can exchange the currency for gold. Bitcoins, like dollars and euros, are not backed up by anything except the variety of merchants that accept them.&lt;br /&gt;
&lt;br /&gt;
It&#039;s a common misconception that Bitcoins gain their value from the cost of electricity required to generate them. Cost doesn&#039;t equal value – hiring 1,000 men to shovel a big hole in the ground may be costly, but not valuable. Also, even though scarcity is a critical requirement for a useful currency, it alone doesn&#039;t make anything valuable. For example, your fingerprints are scarce, but that doesn&#039;t mean they have any exchange value.&lt;br /&gt;
&lt;br /&gt;
Alternatively it needs to be added that while the law of supply and demand applies it does not guarantee value of Bitcoins in the future.  If confidence in Bitcoins is lost then it will not matter that the supply can no longer be increased, the demand will fall off with all holders trying to get rid of their coins.  An example of this can be seen in cases of state currencies, in cases when the state in question dissolves and so no new supply of the currency is available (the central authority managing the supply is gone), however the demand for the currency falls sharply because confidence in its purchasing power disappears.  Of-course Bitcoins do not have such central authority managing the supply of the coins, but it does not prevent confidence from eroding due to other situations that are not necessarily predictable.&lt;br /&gt;
&lt;br /&gt;
=== Is Bitcoin a bubble? ===&lt;br /&gt;
Yes, in the same way as the euro and dollar are. They only have value in exchange and have no inherent value. If everyone suddenly stopped accepting your dollars, euros or bitcoins, the &amp;quot;bubble&amp;quot; would burst and their value would drop to zero. But that is unlikely to happen: even in Somalia, where the government collapsed 20 years ago, [http://en.wikipedia.org/wiki/Somali_shilling Somali shillings] are still accepted as payment.&lt;br /&gt;
&lt;br /&gt;
=== Is Bitcoin a Ponzi scheme? ===&lt;br /&gt;
In a Ponzi Scheme, the founders persuade investors that they’ll profit. Bitcoin does not make such a guarantee. There is no central entity, just individuals building an economy.&lt;br /&gt;
&lt;br /&gt;
A ponzi scheme is a zero sum game. Early adopters can only profit at the expense of late adopters. Bitcoin has possible win-win outcomes. Early adopters profit from the rise in value. Late adopters, and indeed, society as a whole, benefit from the usefulness of a stable, fast, inexpensive, and widely accepted p2p currency.&lt;br /&gt;
&lt;br /&gt;
The fact that early adopters benefit more doesn&#039;t alone make anything a Ponzi scheme. All good investments in successful companies have this quality.&lt;br /&gt;
&lt;br /&gt;
=== Doesn&#039;t Bitcoin unfairly benefit early adopters? ===&lt;br /&gt;
Early adopters in Bitcoin are taking a risk and invested resources in an unproven technology. By so doing, they help Bitcoin become what it is now and what it will be in the future (hopefully, a ubiquitous decentralized digital currency). It is only fair they will reap the benefits of their successful investment.&lt;br /&gt;
&lt;br /&gt;
In any case, any bitcoin generated will probably change hands dozens of time as a medium of exchange, so the profit made from the initial distribution will be insignificant compared to the total commerce enabled by Bitcoin. Many of the earliest users of Bitcoin have traded their coins at valuations below $1 US, or other amounts which are small compared to contemporary prices.&lt;br /&gt;
&lt;br /&gt;
===Won&#039;t loss of wallets and the finite amount of Bitcoins create excessive deflation, destroying Bitcoin? ===&lt;br /&gt;
Worries about Bitcoin being destroyed by deflation are not entirely unfounded.  Unlike most currencies, which experience inflation as their founding institutions create more and more units, Bitcoin will likely experience gradual deflation with the passage of time.  Bitcoin is unique in that only a small amount of units will ever be produced (twenty-one million to be exact), this number has been known since the project&#039;s inception, and the units are created at a predictable rate.&lt;br /&gt;
&lt;br /&gt;
Also, Bitcoin users are faced with a danger that doesn&#039;t threaten users of any other currency: if a Bitcoin user loses his wallet, his money is gone forever, unless he finds it again. And not just to him; it&#039;s gone completely out of circulation, rendered utterly inaccessible to anyone. As people will lose their wallets, the total number of Bitcoins will slowly decrease.&lt;br /&gt;
&lt;br /&gt;
Therefore, Bitcoin seems to be faced with a unique problem. Whereas most currencies inflate over time, Bitcoin will mostly likely do just the opposite. Time will see the irretrievable loss of an ever-increasing number of Bitcoins. An already small number will be permanently whittled down further and further. And as there become fewer and fewer Bitcoins, the laws of supply and demand suggest that their value will probably continually rise.&lt;br /&gt;
&lt;br /&gt;
Thus Bitcoin is bound to once again stray into mysterious territory, because no one exactly knows what happens to a currency that grows continually more valuable. Many economists claim that a low level of inflation is a good thing for a currency, but nobody is quite sure about what might happens to one that continually deflates. Although deflation could hardly be called a rare phenomenon, steady, constant deflation is unheard of.  There may be a lot of speculation, but no one has any hard data to back up their claims.&lt;br /&gt;
&lt;br /&gt;
That being said, there is a mechanism in place to combat the obvious consequences.  Extreme deflation would render most currencies highly impractical: if a single Canadian dollar could suddenly buy the holder a car, how would one go about buying bread or candy?  Even pennies would fetch more than a person could carry. Bitcoin, however, offers a simple and stylish solution: infinite divisibility.  Bitcoins can be divided up and trade into as small of pieces as one wants, so no matter how valuable Bitcoins become, one can trade them in practical quantities.  &lt;br /&gt;
&lt;br /&gt;
In fact, infinite divisibility should allow Bitcoins to function in cases of extreme wallet loss.  Even if, in the far future, so many people have lost their wallets that only a single Bitcoin, or a fraction of one, remains, Bitcoin should continue to function just fine. No one can claim to be sure what is going to happen, but deflation may prove to present a smaller threat than many expect.&lt;br /&gt;
&lt;br /&gt;
For more information, see the [[Deflationary spiral]] page.&lt;br /&gt;
&lt;br /&gt;
=== What if someone bought up all the existing Bitcoins? ===&lt;br /&gt;
Bitcoin markets are competitive -- meaning the price of a bitcoin will rise or fall depending on supply and demand at certain price levels.  Only a fraction of bitcoins issued to date are found on the exchange markets for sale.  So even though technically, a buyer with lots of money could buy all the bitcoins offered for sale, unless those holding the rest of the bitcoins offer them for sale as well, even the wealthiest, most determined buyer can&#039;t get at them.&lt;br /&gt;
&lt;br /&gt;
Additionally, new currency continues to be issued daily and will continue to do so for decades; though over time the rate at which they are issued declines to insignificant levels.  Those who are mining aren&#039;t obligated to sell their bitcoins so not all bitcoins will make it to the markets even.&lt;br /&gt;
&lt;br /&gt;
This situation doesn&#039;t suggest, however, that the markets aren&#039;t vulnerable to price manipulation.  It doesn&#039;t take significant amounts of money to move the market price up or down, and thus Bitcoin remains a volatile asset.&lt;br /&gt;
&lt;br /&gt;
===What if someone creates a new block chain, or a new digital currency that renders Bitcoin obsolete?===&lt;br /&gt;
&lt;br /&gt;
That the block chain cannot be easily forked represents one of the central security mechanisms of Bitcoin.  Given the choice between two block chains, a Bitcoin miner always chooses the longer one - that is to say, the one with the more complex hash.  Thusly, it ensures that each user can only spend their bitcoins once, and that no user gets ripped off.&lt;br /&gt;
&lt;br /&gt;
As a consequence of the block chain structure, there may at any time be many different sub-branches, and the possibility always exists of a transaction being over-written by the longest branch, if it has been recorded in a shorter one.  The older a transaction is though, the lower its chances of being over-written, and the higher of becoming permanent.  Although the block chain prevents one from spending more Bitcoins than one has, it means that transactions can be accidentally nullified.  &lt;br /&gt;
&lt;br /&gt;
A new block chain would leave the network vulnerable to [[double-spending|double-spend]] attacks.  However, the creation of a viable new chain presents considerable difficulty, and the possibility does not present much of a risk.&lt;br /&gt;
&lt;br /&gt;
Bitcoin will always choose the longer Block Chain and determines the relative length of two branches by the complexities of their hashes.  Since the hash of each new block is made from that of the block preceding it, to create a block with a more complex hash, one must be prepared to do more computation than has been done by the entire Bitcoin network from the fork point up to the newest of the blocks one is trying to supersede.  Needless to say, such an undertaking would require a very large amount of processing power and since Bitcoin is continually growing and expanding, it will likely only require more with the passage of time.&lt;br /&gt;
&lt;br /&gt;
A much more distinct and real threat to the Bitcoin use is the development of other, superior virtual currencies, which could supplant Bitcoin and render it obsolete and valueless.&lt;br /&gt;
&lt;br /&gt;
A great deal of careful thought and ingenuity has gone into the development of Bitcoin, but it is the first of its breed, a prototype, and vulnerable to more highly-evolved competitors. At present, any threatening rivals have yet to rear their heads; Bitcoin remains the first and foremost private virtual currency, but we can offer no guarantees that it will retain that position.  It would certainly be in keeping with internet history for a similar system built from the same principles to supersede and cast Bitcoin into obsolescence, after time had revealed its major shortcomings.  Friendster and Myspace suffered similar fates at the hand of Facebook, Napster was ousted by Limeware, Bearshare and torrent applications, and Skype has all but crushed the last few disciples of the Microsoft Messenger army.  &lt;br /&gt;
&lt;br /&gt;
This may sound rather foreboding, so bear in mind that the introduction of new and possibly better virtual currencies will not necessarily herald Bitcoin&#039;s demise.  If Bitcoin establishes itself sufficiently firmly before the inception of the next generation of private, online currencies so as to gain widespread acceptance and general stability, future currencies may pose little threat even if they can claim superior design.  This is known as the network effect.&lt;br /&gt;
&lt;br /&gt;
=== Is Bitcoin open to value manipulation? ===&lt;br /&gt;
&lt;br /&gt;
The current low market cap of Bitcoin means that any investor with deep enough pockets can significantly change/manipulate the rate. Is this a problem?&lt;br /&gt;
&lt;br /&gt;
This is only a problem if you are investing in Bitcoin for short period of time. A manipulator can&#039;t change the fundamentals, and over a period of 5-10 years, the fundamentals will win over any short term manipulations.&lt;br /&gt;
&lt;br /&gt;
==Sending and Receiving Payments==&lt;br /&gt;
&lt;br /&gt;
=== Why do I have to wait 10 minutes before I can spend money I received? ===&lt;br /&gt;
&lt;br /&gt;
10 minutes is the average time taken to find a block. It can be significantly more or less time than that depending on luck; 10 minutes is simply the average case. &lt;br /&gt;
&lt;br /&gt;
[[Blocks]] (shown as &amp;quot;[[Confirmation|confirmations]]&amp;quot; in the GUI) are how the Bitcoin achieves consensus on who owns what. Once a block is found everyone agrees that you now own those coins, so you can spend them again. Until then it&#039;s possible that some network nodes believe otherwise, if somebody is attempting to defraud the system by reversing a transaction. The more confirmations a transaction has, the less risk there is of a reversal. Only 6 blocks or 1 hour is enough to make reversal computationally impractical. This is dramatically better than credit cards which can see chargebacks occur up to three months after the original transaction!&lt;br /&gt;
&lt;br /&gt;
Ten minutes was specifically chosen by [[Satoshi]] as a tradeoff between first confirmation time and the amount of work wasted due to chain splits. After a block is mined, it takes time for other miners to find out about it, and until then they are actually competing against the new block instead of adding to it. If someone mines another new block based on the old block chain, the network can only accept one of the two, and all the work that went into the other block gets wasted. For example, if it takes miners 1 minute on average to learn about new blocks, and new blocks come every 10 minutes, then the overall network is wasting about 10% of its work. Lengthening the time between blocks reduces this waste.&lt;br /&gt;
&lt;br /&gt;
As a thought experiment, what if the Bitcoin network grew to include Mars? From the farthest points in their orbits, it takes about 20 minutes for a signal to travel from Earth to Mars. With only 10 minutes between new blocks, miners on Mars would always be 2 blocks behind the miners on Earth. It would be almost impossible for them to contribute to the block chain. If we wanted collaborate with those kinds of delays, we would need at least a few hours between new blocks. &lt;br /&gt;
&lt;br /&gt;
[[File:TransactionConfirmationTimesExample.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Do you have to wait until my transactions are confirmed in order to buy or sell things with Bitcoin? ===&lt;br /&gt;
&lt;br /&gt;
YES, you do, IF the transaction is non-recourse. The Bitcoin reference software does not display transactions as confirmed until six blocks have passed (confirmations). As transactions are buried in the chain they become increasingly non-reversible but are very reversible before the first confirmation. Two to six confirmations are recommended for non-recourse situations depending on the value of the transactions involved.&lt;br /&gt;
&lt;br /&gt;
When people ask this question they are usually thinking about applications like supermarkets. This generally is a recourse situation: if somebody tries to double-spend on a face-to-face transaction it might work a few times, but probabalistically speaking eventually one of the double-spends will get noticed, and the penalty for shoplifting charges in most localities is calibrated to be several times worse than the proceeds of a single shoplifting event.&lt;br /&gt;
&lt;br /&gt;
Double-spends might be a concern for something like a snack machine in a low-traffic area with no nearby security cameras. Such a machine shouldn&#039;t honor zero-confirmation payments, and should instead use some other mechanism of clearing Bitcoin or validating transactions against reversal, see the wiki article [[Myths#Point_of_sale_with_bitcoins_isn.27t_possible_because_of_the_10_minute_wait_for_confirmation|here]] for alternatives.&lt;br /&gt;
&lt;br /&gt;
Applications that require immediate payment processing, like supermarkets or snack machines, need to manage the risks. Here is one way to reverse an unconfirmed payment:&lt;br /&gt;
&lt;br /&gt;
A [[Double-spending#Finney_attack|Finney attack]] is where an attacker mines a block containing a movement of some coins back to themselves. Once they find a block solution, they quickly go to a merchant and make a purchase, then broadcast the block, thus taking back the coins. This attack is a risk primarily for goods that are dispatched immediately, like song downloads or currency trades. Because the attacker can&#039;t choose the time of the attack, it isn&#039;t a risk for merchants such as supermarkets where you can&#039;t choose exactly when to pay (due to queues, etc). The attack can fail if somebody else finds a block containing the purchasing transaction before you release your own block, therefore, merchants can reduce but not eliminate the risk by making purchasers wait some length of time that&#039;s less than a confirm.&lt;br /&gt;
&lt;br /&gt;
Because pulling off this attack is not trivial, merchants who need to sell things automatically and instantly are most likely to adjust the price to include the cost of reversal fraud, or elect to use special insurance.&lt;br /&gt;
&lt;br /&gt;
=== I was sent some bitcoins and they haven&#039;t arrived yet! Where are they? ===&lt;br /&gt;
&lt;br /&gt;
Don&#039;t panic!  There are a number of reasons why your bitcoins might not show up yet, and a number of ways to diagnose them.  &lt;br /&gt;
&lt;br /&gt;
The latest version of the Bitcoin-Qt client tells you how far it has yet to go in downloading the blockchain.  Hover over the icon in the bottom right corner of the client to learn your client&#039;s status.&lt;br /&gt;
&lt;br /&gt;
If it has not caught up then it&#039;s possible that your transaction hasn&#039;t been included in a block yet.  &lt;br /&gt;
&lt;br /&gt;
You can check pending transactions in the network by going [https://www.biteasy.com here] or [http://blockchain.info here] and then searching for your address.  If the transaction is listed here then it&#039;s a matter of waiting until it gets included in a block before it will show in your client.  &lt;br /&gt;
&lt;br /&gt;
If the transaction is based on a coin that was in a recent transaction then it could be considered a low priority transaction. Transfers can take longer if the transaction fee paid was not high enough.  If there is no fee at all the transfer can get a very low priority and take hours or even days to be included in a block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== I sent too small of a transaction fee, is my bitcoin lost forever? ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the transaction never gets confirmed into a block - the mempool expiry of all nodes will drop it eventually and you will be able to spend your funds again - [https://hackernoon.com/holy-cow-i-sent-a-bitcoin-transaction-with-too-low-fees-are-my-coins-lost-forever-7a865e2e45ba typically] it takes about 3 days or so for this to happen. If using an [[https://en.bitcoin.it/w/index.php?title=Scalability#Simplified_payment_verification SPV]] wallet such as [[ Electrum]] or [[Multibit]], if after three days the wallet does not see the coin to spend, you need to reindex your wallet&#039;s block headers. After reindexing, your wallet will see that the coin was never confirmed and thus the balance will be spendable again. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: From Bitcoin 0.14 “transaction reappearance” happens after 2 [https://www.reddit.com/r/Bitcoin/comments/69jywp/a_practical_guide_to_accidental_low_fee/dhjfthf/ weeks].&lt;br /&gt;
&lt;br /&gt;
=== Why does my Bitcoin address keep changing? ===&lt;br /&gt;
{{seealso|Address reuse}}&lt;br /&gt;
Unlike postal and email addresses, Bitcoin addresses are designed to be used exactly once only, for a single transaction.&lt;br /&gt;
Originally, wallets would display only a single address at a time, and change it when a transaction was received, but an increasing number of wallet implementations now generate an address when you explicitly want to receive a payment.&lt;br /&gt;
&lt;br /&gt;
While it is technically possible to use an address for an arbitrary number of payments, this works by accident and harms both yourself &#039;&#039;and other unrelated third parties&#039;&#039;, so it is considered a bad practice.&lt;br /&gt;
The most important concerns with such misuse involve loss of privacy and security:&lt;br /&gt;
both can be put into jeopardy when addresses are used for more than a single transaction only.&lt;br /&gt;
&lt;br /&gt;
===How much will the transaction fee be? / Why is the fee so high?===&lt;br /&gt;
&lt;br /&gt;
Bitcoin transactions almost always require a [[transaction fee]] for them to get confirmed.  The transaction fee is received by the first bitcoin miner who mines a [[block]] containing the transaction; this action is also what gives the transaction its first confirmation. The appropriate fee varies depending on how large (in bytes) your transaction is, how fast you want the transaction to be confirmed, and also on current network conditions. As such, paying a fixed fee, or even a fixed fee per kB, is a very bad idea; all good Bitcoin wallets will use several pieces of data to estimate an appropriate fee for you, though some are better at fee estimation than others.&lt;br /&gt;
&lt;br /&gt;
The fee most strongly depends on the transaction&#039;s data size. Fees do &#039;&#039;&#039;not&#039;&#039;&#039; depend on the BTC amount of the transaction -- it&#039;s entirely possible for a 0.01 BTC transaction to require a higher fee than a 1000 BTC transaction.&lt;br /&gt;
&lt;br /&gt;
Basic intro to how Bitcoin [[transactions]] work: If you receive BTC in three separate transactions of (say) 1, 5, and 10 BTC, then you can think of your wallet as containing three gold coins with sizes 1, 5, and 10 BTC. If you then want to send 6 BTC, you can melt the 1 &amp;amp; 5 BTC coins together and recast them as a 6 BTC coin, or melt the 10 BTC coin and recast a 6 BTC coin for the recipient and a 4 BTC coin as change for yourself. In Bitcoin&#039;s technical vocabulary, these objects are literally called input and output coins. (In the rest of this section, when we say &amp;quot;coin&amp;quot; we mean these objects, not the amount of BTC value.)&lt;br /&gt;
&lt;br /&gt;
Transaction data sizes, and therefore fees, are proportional to the &#039;&#039;&#039;number&#039;&#039;&#039; (not value) of input and output coins in a transaction. Input coins are about 5x larger / more expensive than output coins.&lt;br /&gt;
&lt;br /&gt;
If your wallet estimates a very high fee, it is most likely because your wallet is full of a whole bunch of tiny coins, so your transaction will need to take very many coins as inputs, increasing the cost. On the bright side, fees will go down once you make a few transactions, since you will end up &amp;quot;melting down&amp;quot; these many small coins into a few larger ones. Sometimes you can significantly reduce the fee by sending less BTC: if you have like 1000 tiny faucet payments totaling 0.5 BTC and then 16.5 BTC from other sources, then you&#039;ll find that sending ~16.5 BTC will be massively cheaper than sending a slightly higher value since it avoids including all of those faucet coins.&lt;br /&gt;
&lt;br /&gt;
Fees also fluctuate depending on network conditions. All unconfirmed transactions compete with each other to be picked up by miners. If there are a lot of high-fee transactions being sent right now, then you will need to pay higher fees to out-bid them. On the other hand, if speed is less important to you, you can pay a somewhat smaller fee, and your transaction will float around until there is a period of reduced network usage. Sometimes even transactions with zero fee will be confirmed after a very long period of time, though this requires a perfect set of conditions, beyond what is explained here (ie. it probably won&#039;t work if you try it).&lt;br /&gt;
&lt;br /&gt;
Oftentimes wallets will have an &amp;quot;express&amp;quot; fee configuration, but note that confirmation times are naturally random and unreliable. At any given point in time, the probability that &#039;&#039;no&#039;&#039; transactions will be confirmed in the next hour is about 0.25% (ie. it happens more than once per week on average). Bitcoin users should avoid getting into situations where their transactions &#039;&#039;absolutely must&#039;&#039; get 1 confirmation in the next couple of hours, even if high-fee transactions usually take less than 10 minutes to get 1 confirmation.&lt;br /&gt;
&lt;br /&gt;
=== What happens when someone sends me a bitcoin but my computer is powered off? ===&lt;br /&gt;
&lt;br /&gt;
Bitcoins are not actually &amp;quot;sent&amp;quot; to your wallet; the software only uses that term so that we can use the currency without having to learn new concepts.  Your wallet is only needed when you wish to spend coins that you&#039;ve received.&lt;br /&gt;
&lt;br /&gt;
If you are sent coins when your wallet client program is not running, and you later launch the wallet client program, the coins will eventually appear as if they were just received in the wallet. That is to say, when the client program is started it must download blocks and catch up with any transactions it did not already know about.&lt;br /&gt;
&lt;br /&gt;
=== How long does &amp;quot;synchronizing&amp;quot; take when the Bitcoin client is first installed? What&#039;s it doing? ===&lt;br /&gt;
&lt;br /&gt;
The popular [[Bitcoin Core|Bitcoin client software]] from bitcoin.org implements a [[Full node|&amp;quot;full&amp;quot; Bitcoin node]]: It can carry out all the duties of the Bitcoin P2P system, it isn&#039;t simply a &amp;quot;client&amp;quot;. One of the principles behind the operation of full Bitcoin nodes is that they don&#039;t assume that the other participants have followed the rules of the Bitcoin system. During synchronization, the software is processing historical Bitcoin transactions and making sure for itself that all of the rules of the system have been correctly followed.&lt;br /&gt;
&lt;br /&gt;
In normal operation, after synchronizing, the software should use a hardly noticeable amount of your computer&#039;s resources.&lt;br /&gt;
&lt;br /&gt;
When the wallet client program is first installed, its initial validation requires a lot of work from your computer&#039;s hard disk, so the amount of time to synchronize depends on your disk speed and, to a lesser extent, your CPU speed. It can take anywhere from a few hours to a day or so. On a slow computer it could take more than 40 hours of continuous synchronization, so check your computer&#039;s power-saving settings to ensure that it does not turn its hard disk off when unattended for a few hours.  You can use the Bitcoin software during synchronization, but you may not see recent payments to you until the client program has caught up to the point where those transactions happened.&lt;br /&gt;
&lt;br /&gt;
If you feel that this process takes too long, you can try an alternative [[lightweight node]] such as [[Electrum]], though these clients have weaker security and privacy. See also: [[Full_node#Why_should_you_use_a_full_node_wallet|Why should you use a full node wallet]]&lt;br /&gt;
&lt;br /&gt;
==Networking==&lt;br /&gt;
=== Do I need to configure my firewall to run Bitcoin? ===&lt;br /&gt;
&lt;br /&gt;
Bitcoin will connect to other nodes, usually on TCP port 8333. You will need to allow outgoing TCP connections to port 8333 if you want to allow your Bitcoin client to connect to many nodes. [[Testnet]] uses TCP port 18333 instead of 8333.&lt;br /&gt;
&lt;br /&gt;
If you want to restrict your firewall rules to a few IPs, you can find stable nodes in the [[Fallback Nodes|fallback nodes list]].&lt;br /&gt;
&lt;br /&gt;
=== How does the peer finding mechanism work? ===&lt;br /&gt;
&lt;br /&gt;
Bitcoin finds peers primarily by forwarding peer announcements within its own network and each node saves a database of peers that it&#039;s aware of, for future use. In order to bootstrap this process Bitcoin needs a list of initial peers, these can be provided manually but normally it obtains them by querying a set of DNS domain names which have automatically updated lists, if that doesn&#039;t work it falls back to a built-in list which is updated from time to time in new versions of the software. In the reference software initial peers can also be specified manually by adding an addr.txt to the data directory or via the addnode parameter.&lt;br /&gt;
&lt;br /&gt;
==Mining==&lt;br /&gt;
===What is mining?===&lt;br /&gt;
[[Mining]] is the process of spending computation power to secure Bitcoin transactions against reversal and introducing new Bitcoins to the system&amp;lt;ref&amp;gt;[https://www.bitcoinmining.com Bitcoin Mining]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Technically speaking, mining is the calculation of a [[hash]] of the a block header, which includes among other things a reference to the previous block, a hash of a set of transactions and a [[nonce]]. If the hash value is found to be less than the current [[target]] (which is inversely proportional to the [[difficulty]]), a new block is formed and the miner gets the newly generated Bitcoins (25 per block at current levels). If the hash is not less than the current target, a new nonce is tried, and a new hash is calculated. This is done millions of times per second by each miner.&lt;br /&gt;
&lt;br /&gt;
===Is mining used for some useful computation?===&lt;br /&gt;
The computations done when mining are internal to Bitcoin and not related to any other distributed computing projects. They serve the purpose of securing the Bitcoin network, which is useful.&lt;br /&gt;
&lt;br /&gt;
===Is it not a waste of energy?===&lt;br /&gt;
Spending energy on creating and securing a free monetary system is hardly a waste. Also, services necessary for the operation of currently widespread monetary systems, such as banks and credit card companies, also spend energy, arguably more than Bitcoin would.&lt;br /&gt;
&lt;br /&gt;
===Why don&#039;t we use calculations that are also useful for some other purpose?===&lt;br /&gt;
To provide security for the Bitcoin network, the calculations involved need to have some [http://bitcoin.stackexchange.com/questions/5617/why-are-bitcoin-calculation-useless/5618#5618 very specific features]. These features are incompatible with leveraging the computation for other purposes.&lt;br /&gt;
&lt;br /&gt;
===How can we stop miners from creating zero transaction blocks?===&lt;br /&gt;
The incentive for miners to include transactions is in the fees that come along with them. If we were to implement some minimum number of transactions per block it would be trivial for a miner to create and include transactions merely to surpass that threshold. As the network matures, the block reward drops, and miners become more dependent on transactions fees to pay their costs, the problem of zero transaction blocks should diminish over time.&lt;br /&gt;
&lt;br /&gt;
===How does the proof-of-work system help secure Bitcoin?===&lt;br /&gt;
Bitcoin uses the [[Hashcash]] [[proof of work]] with a minor adaption.  To give a general idea of the mining process, imagine this setup:&lt;br /&gt;
&lt;br /&gt;
  payload = &amp;lt;some data related to things happening on the Bitcoin network&amp;gt;&lt;br /&gt;
  nonce = 1&lt;br /&gt;
  hash = [http://en.wikipedia.org/wiki/SHA2 SHA2]( [http://en.wikipedia.org/wiki/SHA2 SHA2]( payload + nonce ) )&lt;br /&gt;
&lt;br /&gt;
The work performed by a miner consists of repeatedly increasing &amp;quot;nonce&amp;quot; until&lt;br /&gt;
the hash function yields a value, that has the rare property of being below a certain&lt;br /&gt;
target threshold. (In other words: The hash &amp;quot;starts with a certain number of zeroes&amp;quot;,&lt;br /&gt;
if you display it in the fixed-length representation, that is typically used.)&lt;br /&gt;
&lt;br /&gt;
As can be seen, the mining process doesn&#039;t compute anything special. It merely&lt;br /&gt;
tries to find a number (also referred to as nonce) which - in combination with the payload -&lt;br /&gt;
results in a hash with special properties.&lt;br /&gt;
&lt;br /&gt;
The advantage of using such a mechanism consists of the fact, that it is very easy to check a result: Given the payload and a specific nonce, only a single call of the hashing function is needed to verify that the hash has the required properties. Since there is no known way to find these hashes other than brute force, this can be used as a &amp;quot;[[proof of work]]&amp;quot; that someone invested a lot of computing power to find the correct nonce for this payload.&lt;br /&gt;
&lt;br /&gt;
This feature is then used in the Bitcoin network to allow the network to come to a consensus on the history of transactions. An attacker that wants to rewrite history will need to do the required proof of work before it will be accepted. And as long as honest miners have more computing power, they can always outpace an attacker.&lt;br /&gt;
&lt;br /&gt;
Also see [http://en.wikipedia.org/wiki/Hashcash Hashcash] and [http://en.wikipedia.org/wiki/Proof-of-work_system Proof-of-work system] and [http://en.wikipedia.org/wiki/SHA2 SHA2] and on Wikipedia.&lt;br /&gt;
&lt;br /&gt;
===Why was the &amp;quot;Generate coin&amp;quot; option of the client software removed?===&lt;br /&gt;
&lt;br /&gt;
The option wasn&#039;t removed, but it is now only accessible via the command-line or the configuration file.  The reason for this is that many users were complaining after they turned on and expecting to receive coins. Without specialized mining hardware a user is exceptionally unlikely generate a block on their own at the network&#039;s current [[difficulty|security level]].&lt;br /&gt;
&lt;br /&gt;
==Security==&lt;br /&gt;
&lt;br /&gt;
===Could miners collude to give themselves money or to fundamentally change the nature of Bitcoin?===&lt;br /&gt;
&lt;br /&gt;
There are two questions in here.  Let&#039;s look at them separately.&lt;br /&gt;
&lt;br /&gt;
;Could miners gang up and give themselves money?&lt;br /&gt;
&lt;br /&gt;
Mining itself is the process of creating new blocks in the block chain.  Each block contains a list of all the transactions that have taken place across the entire Bitcoin network since the last block was created, as well as a hash of the previous block.  New blocks are &#039;mined&#039;, or rather, generated, by  Bitcoin clients correctly guessing sequences of characters in codes called &#039;hashes,&#039; which are created using information from previous blocks.  Bitcoin users may download specialized &#039;mining&#039; software, which  allows them to dedicate some amount of their processing power – however large or small – to guessing at strings within the hash of the previous block.  Whoever makes the right guess first, thus creating a new block, receives a reward in Bitcoins.&lt;br /&gt;
	&lt;br /&gt;
The block chain is one of the two structures that makes Bitcoin secure, the other being the public-key encryption system on which Bitcoin trade is based.  The block chain assures that not only is every single transaction that ever takes place recorded, but that every single transaction is recorded on the computer of anyone who chooses to store the relevant information.  Many, many users have complete records of every transaction in Bitcoins history readily available to them at any point, and anyone who wants in the information can obtain it with ease.  These things make Bitcoin very hard to fool.&lt;br /&gt;
&lt;br /&gt;
The Bitcoin network takes considerable processing power to run, and since those with the most processing power can make the most guesses, those who put the most power toward to sustaining the network earn the most currency.  Each correct guess yields, at present, twenty-five Bitcoins, and as Bitcoins are presently worth something (although the value still fluctuates) every miner who earns any number of Bitcoins makes money.  Some miners pull in Bitcoins on their own; and some also join or form pools wherein all who contribute earn a share of the profits.  &lt;br /&gt;
	&lt;br /&gt;
Therefore, first answer is a vehement “yes”  – not only can miners collude to get more money, Bitcoin is designed to encourage them to do so.  Bitcoin pools are communal affairs, and there is nothing dishonest or underhanded about them.&lt;br /&gt;
&lt;br /&gt;
Of course, the real question is:&lt;br /&gt;
&lt;br /&gt;
;Can they do so in ways not sanctioned by Bitcoin network?  Is there any way to rip off the network and make loads of money dishonestly?&lt;br /&gt;
&lt;br /&gt;
Bitcoin isn&#039;t infallible.  It can be cheated, but doing so is extremely difficult.  Bitcoin was designed to evade some of the central problems with modern currencies – namely, that their trustworthiness hinges upon that of people who might not have users&#039; best interests in mind.  Every currency in the world (other than Bitcoin) is controlled by large institutions who keep track of what&#039;s done with it, and who can manipulate its value.  And every other currency has value because people trust the institutions that control them.&lt;br /&gt;
&lt;br /&gt;
Bitcoin doesn&#039;t ask that its users trust any institution.  Its security is based on the cryptography that is an integral part of its structure, and that is readily available for any and all to see.  Instead of one entity keeping track of transactions, the entire network does, so Bitcoins are astoundingly difficult to steal, or double-spend. Bitcoins are created in a regular and predictable fashion, and by many different users, so no one can decide to make a whole lot more and lessen their value.  In short, Bitcoin is designed to be inflation-proof, double-spend-proof and completely distributed.&lt;br /&gt;
&lt;br /&gt;
Nonetheless, there are a few ways that one can acquire Bitcoins dishonestly.  Firstly, one can steal private keys.  Key theft isn&#039;t something that Bitcoin security has been designed to prevent: it&#039;s up to users to keep their keys safe.  But the cryptography is designed so that it is completely impossible to deduce someone&#039;s private key from their public one. As long as you keep your private key to yourself, you don&#039;t have much to worry about.  Furthermore, one could theoretically create a new block chain, but due to the way in which the block chain is constructed, this would be extremely difficult and require massive amounts of processing power.  A full explanation of the difficulties involved can be found in the [[block chain]] article.&lt;br /&gt;
&lt;br /&gt;
Bitcoin can be ripped off – but doing so would be extremely hard and require considerable expertise and a staggering amount of processing power.  And it&#039;s only going to get harder with time.  Bitcoin isn&#039;t impenetrable, but it&#039;s close enough to put any real worries in the peripherals.&lt;br /&gt;
	&lt;br /&gt;
;Could miners fundamentally change the nature of Bitcoin?&lt;br /&gt;
&lt;br /&gt;
Once again, almost certainly not.&lt;br /&gt;
&lt;br /&gt;
Bitcoin is a distributed network, so any changes implemented to the system must be accepted by all users.  Someone trying to change the way Bitcoins are generated would have to convince every user to download and use their software – so the only changes that would go through are those that would be equally benefit all users. &lt;br /&gt;
&lt;br /&gt;
And thus, it is more or less impossible for anyone to change the function of Bitcoin to their advantage.  If users don&#039;t like the changes, they won&#039;t adopt them, whereas if users do like them, then these will help everyone equally.  Of course, one can conceive of a situation where someone manages to get a change pushed through that provides them with an advantage that no one notices, but given that Bitcoin is structurally relatively simple, it is unlikely that any major changes will go through without someone noticing first.&lt;br /&gt;
&lt;br /&gt;
The fact that such changes are so difficult to make testifies to the fully distributed nature of Bitcoin.  Any centrally controlled currency can be modified by its central agency without the consent of its adherents.  Bitcoin has no central authority, so it changes only at the behest of the whole community.  Bitcoins development represents a kind of collective evolution; the first of its kind among currencies.&lt;br /&gt;
&lt;br /&gt;
==Help==&lt;br /&gt;
===I&#039;d like to learn more.  Where can I get help?===&lt;br /&gt;
&lt;br /&gt;
* Read the [[Introduction|introduction to bitcoin]] &lt;br /&gt;
* See the videos, podcasts, and blog posts from the [[Press]]&lt;br /&gt;
* Read and post on the [[:Bitcoin Wiki:Community_portal#Bitcoin_Community_Forums|forums]]&lt;br /&gt;
* Chat on one of the [[:Bitcoin Wiki:Community_portal#IRC_Chat|Bitcoin IRC]] channels&lt;br /&gt;
* Listen to [http://omegataupodcast.net/2011/03/59-bitcoin-a-digital-decentralized-currency/ this podcast], which goes into the details of how bitcoin works&lt;br /&gt;
* Ask questions on the [http://bitcoin.stackexchange.com Bitcoin Stack Exchange]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Man page]]&lt;br /&gt;
* [[Introduction]]&lt;br /&gt;
* [[Prohibited changes]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
{{Reflist|2}}&lt;br /&gt;
&lt;br /&gt;
[[de:FAQ]]&lt;br /&gt;
[[zh-cn:FAQ]]&lt;br /&gt;
[[fr:FAQ]]&lt;br /&gt;
[[ru:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Vocabulary]]&lt;/div&gt;</summary>
		<author><name>Sysadmin</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Template:Ico&amp;diff=70309</id>
		<title>Template:Ico</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Template:Ico&amp;diff=70309"/>
		<updated>2024-07-29T19:03:04Z</updated>

		<summary type="html">&lt;p&gt;Sysadmin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;position:absolute; z-index:50; right:{{{right|21}}}px; top:-47px;&amp;quot; class=&amp;quot;metadata topicon nopopups&amp;quot;  id=&amp;quot;featured-star&amp;quot;&amp;gt;&lt;br /&gt;
[[file:{{{1|Information.png}}}|16px|{{{2|}}}&amp;lt;noinclude&amp;gt;This page has a cool icon on it. It looks all messed up on redirect and sub pages so something needs to be done about that.&amp;lt;/noinclude&amp;gt;|link={{{3|}}}&amp;lt;noinclude&amp;gt;Main Page&amp;lt;/noinclude&amp;gt;]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sysadmin</name></author>
	</entry>
</feed>