Take remainder from the curve's prime instead of G

Instances of `point( ( key + i ) % G )` should read `point( (key + i) % p )`
This commit is contained in:
fivepiece 2016-11-11 09:29:48 +02:00 committed by GitHub
parent 9e3d55b562
commit f741ed7cb9

View file

@ -429,11 +429,11 @@ existing [(parent) public key][/en/glossary/parent-key]{:#term-parent-public-key
integer (*i*) value. This child public key is the same public key which integer (*i*) value. This child public key is the same public key which
would be created by the `point()` function if you added the *i* value to would be created by the `point()` function if you added the *i* value to
the original (parent) private key and then found the remainder of that the original (parent) private key and then found the remainder of that
sum divided by a global constant used by all Bitcoin software (*G*): sum divided by a global constant used by all Bitcoin software (*p*):
{% endautocrossref %} {% endautocrossref %}
point( (parent_private_key + i) % G ) == parent_public_key + point(i) point( (parent_private_key + i) % p ) == parent_public_key + point(i)
{% autocrossref %} {% autocrossref %}
@ -451,7 +451,7 @@ operations:
{% endautocrossref %} {% endautocrossref %}
point( (child_private_key + i) % G ) == child_public_key + point(i) point( (child_private_key + i) % p ) == child_public_key + point(i)
{% autocrossref %} {% autocrossref %}