From 2641f10b2e5841d21f64061d592814fb330aa345 Mon Sep 17 00:00:00 2001 From: D++ <82842780+dplusplus1024@users.noreply.github.com> Date: Sun, 28 Jan 2024 13:43:03 -0800 Subject: [PATCH] Omit 0 from private key range Changed to remove 0 from the private key range, as 0 is invalid. --- ch04_keys.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch04_keys.adoc b/ch04_keys.adoc index be604b31..c04cfdd0 100644 --- a/ch04_keys.adoc +++ b/ch04_keys.adoc @@ -121,7 +121,7 @@ or repeatable. Bitcoin software uses cryptographically secure random number generators to produce 256 bits of entropy. [role="less_space pagebreak-before"] -More precisely, the private key can be any number between 0 and _n_ - +More precisely, the private key can be any number between 1 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 <>). To create such a key, we randomly pick a