Thank you!
Your code works fine, there's just one thing which slips (?) the process. It adds an additional zero sometimes in front of the
x &
y and I don't know what's responsible for that. For example, if I run it with
k=1, it returns it properly:
x: 79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798
y: 483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8
Trying it with
k=2, you'll get:
x: 0C6047F9441ED7D6D3045406E95C07CD85C778E4B8CEF3CA7ABAC09B95C709EE5
y: 1AE168FEA63DC339A3C58419466CEAEEF7F632653266D0E1236431A950CFE52A
That extra zero (
0C60...) shouldn't exist, because obviously, once is hashed with SHA256 it'll give a different result.
Seriously now, I'll say this again; thank you. You wasted your time to write me code? The least I can do is merit you.