|
|
|
@ -117,7 +117,7 @@ use to pick that number does not matter as long as it is not predictable
|
|
|
|
|
or repeatable. Bitcoin software uses cryptographically secure random
|
|
|
|
|
number generators to produce 256 bits of entropy.
|
|
|
|
|
|
|
|
|
|
More precisely, the private key can be any number between 0 and n -
|
|
|
|
|
More precisely, the private key can be any number between 0 and _n_ -
|
|
|
|
|
1 inclusive, where _n_ is a constant (_n_ = 1.1578 × 10^77^, slightly less
|
|
|
|
|
than 2^256^) defined as the order of the elliptic curve used in Bitcoin
|
|
|
|
|
(see <<elliptic_curve>>). To create such a key, we randomly pick a
|
|
|
|
@ -343,10 +343,10 @@ find the public key _K_:
|
|
|
|
|
|
|
|
|
|
[source, python]
|
|
|
|
|
----
|
|
|
|
|
K = 1E99423A4ED27608A15A2616A2B0E9E52CED330AC530EDCC32C8FFC6A526AEDD * G
|
|
|
|
|
K = 1E99423A4ED27608A15A2616A2B0E9E52CED330AC530EDCC32C8FFC6A526AEDD × G
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
Public key _K_ is defined as a point K = (x, y):
|
|
|
|
|
Public key _K_ is defined as a point _K_ = (_x_, _y_):
|
|
|
|
|
|
|
|
|
|
[latexmath]
|
|
|
|
|
++++
|
|
|
|
@ -1085,9 +1085,9 @@ The "32" stands for the number of characters in the bech32 alphabet
|
|
|
|
|
.Bech32 typo detection
|
|
|
|
|
====
|
|
|
|
|
Address:
|
|
|
|
|
bc1p9nh05ha8wrljf7ru236awpass:[<u>n</u>]4t2x0d5ctkkywm**v**9sclnm4t0av2vgs4k3au7
|
|
|
|
|
bc1p9nh05ha8wrljf7ru236awpass:[<u><em>n</em></u>]4t2x0d5ctkkywmpass:[<u><em>v</em></u>]9sclnm4t0av2vgs4k3au7
|
|
|
|
|
|
|
|
|
|
Detected errors shown in bold. Generated using the
|
|
|
|
|
Detected errors shown in bold and underlined. Generated using the
|
|
|
|
|
https://oreil.ly/paWIx[bech32 address decoder demo].
|
|
|
|
|
====
|
|
|
|
|
|
|
|
|
|