I am looking to know how bitcoin works through writing my very own code in C++. Lately I am suffering to as it should be enforce PBKDF2 serve as. I have attempted such a lot of assets of data, like:
and lots of others. A few of them as a supply of code, some for checking computational effects.
From 5. I take into account that SALT parameter of PBKDF2 needs to be “mnemonic” string. In line with 1. and a couple of. I’ve to concatenate SALT with an 4 byte illustration of an integer 1 (bitcoin does no longer require 2, 3, … ). Is it true? Do I’ve to concatenate SALT with “0001” as a most straightforward SALT enter or “mnemonic” is sufficient??? What’s the right kind padding of mnemonic sentence string? Is it required to stay areas between phrases or no longer? From what I already know HMAC-SHA512 message padding begins with SALT (128 bytes block) adopted through mnemonic sentence.
I imagine that I have attempted each and every aggregate of parameters and computation approaches (determined :)). And I additionally imagine that there’s some roughly trick. Up to now I have noticed methods nearly in each and every a part of being stated evident algorithms.
Please assist.