Understanding Bitcoin

Bitcoin key accounts is everything 

Bitcoin transaction process

1. Use your key signature validation through the system on a deal to prove that you have the deal in equal installments Bitcoin

2. When we spend bitcoins, it will produce a new deal that only a small Ming's key can open

Decentralized transaction systems

Full-node client 300GB

Light purse

Bitcoin transactions are not reversible

Bit system processes credits

1. Accounting 2. 3. issuing currency account management 

1. 2. account management key management and transmission and reception management 3. account balance water

Bitcoin private key 256 binary digits

Bit elliptic curve algorithm credits  Algorithm ellipse bit credits

The above formula, \mod{}  is to take more than a symbol, and p  is a big primes, to this point, the formula will only independent variable x  and the dependent variable Y  , and you can see it as two yuan junior high school learned multiple functions, but not all real numbers x  satisfy this curve, so in fact the elliptic curve is a scatter plot,

Elliptic Curve spec256k1

p = 115792089237316195423570985008687907853269984665640564039457584007908834671663

 

 

Calculating bit elliptic curve public key algorithm credits

Public key algorithm is to use these basic operations

1. Unlimited adder 2. 3. Definition of the multiplication

Algorithm ellipse bit credits

 

 

Bitcoin public key algorithm

Bitcoin public key of his points on an elliptic curve x and y are large it is necessary to address bits credits

Bit address generation credits

1. By converting the public key to a hash algorithm of the fixed-length string

2. The first step of compression encoding result output address generation

Address bits production process credits

 Hash algorithm uses two bits in the first production credits address SHA256 algorithm is another algorithm is RIPEMD160

SHA256 it first with the public key is mapped to a 32-byte number to generate a digital RIPEMD160 then mapped to a 20-byte number

Use base58 encoding compression algorithm is less than six characters base64 

base58check verify

base58check

 

We need to join a string of "1215309" in checksum algorithm and 21, and add 21 to the end of the string to verify if accidentally wrote the 5 then 2 and 24 to the end of the 21 inconsistent with

Bitcoin base58check algorithm

1. In step 20 based on the public key hash prefix adding a version of a new string output

Step 2 using SHA256 algorithm to generate a hash strings taken twice before the results of a 4-byte checksum as

3. Add the checksum to the end of the public key Hash

Four pairs of the entire compression-encoded base58 string generated address bits credits

 

Meaning different version
Type Version prefix (hexadecimal representation) Version prefix (Base58 representation)
Bitcoin address 0x00 1
Hash script address 0x05 3
Bitcoin test network address 0x6F m or n
Private Key WIF 0x80 5, K, or L
BIP-38 encryption private 0x0142 6P
Extended public key BIP-32 0x0488B21E ¿xpUu

Therefore, the address bits are credits at the beginning of an address

 

 

Guess you like

Origin www.cnblogs.com/validate/p/12462110.html