From f59afd880399021953355a1698dc84c48b571f8c Mon Sep 17 00:00:00 2001 From: "David A. Harding" Date: Wed, 14 May 2014 08:48:52 -0400 Subject: [PATCH] Fix Off-By-One Error In HD Wallet Section Discovered by /u/lifeboatz on Reddit. Thanks! --- _includes/guide_wallets.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/guide_wallets.md b/_includes/guide_wallets.md index adee617d..b9cf1848 100644 --- a/_includes/guide_wallets.md +++ b/_includes/guide_wallets.md @@ -256,11 +256,11 @@ great-grandchild extended private keys. The HD protocol uses different index numbers to indicate whether a normal or hardened key should be generated. Index numbers from -0x00 to 0x80000000 (0 to 231) will generate a normal key; index -numbers from 0x80000001 to 0x100000000 will generate a hardened key. To +0x00 to 0x7fffffff (0 to 231-1) will generate a normal key; index +numbers from 0x80000000 to 0xffffffff will generate a hardened key. To make descriptions easy, many developers use the [prime symbol][] to indicate hardened keys, so the first normal key (0x00) is 0 and the first hardened -key (0x80000001) is 0´. +key (0x80000000) is 0´. (Bitcoin developers typically use the ASCII apostrophe rather than the unicode prime symbol, a convention we will henceforth follow.)