You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I believe that there is a problem in derivation and some time doesn't work well. I made some tests with testnet and validate results with https://iancoleman.io/bip39/ and it doesn't match.
I found that in the file internal.m (line 130) you save new private key like this
result = [NSMutableData dataWithLength:numBytes];
BN_bn2bin(privateKey, result.mutableBytes);
and I believe that you need to save new private key like this
result = [NSMutableData dataWithLength:32];
BN_bn2bin(privateKey, &result.mutableBytes[32-numBytes]);
Regards
The text was updated successfully, but these errors were encountered:
impul
added a commit
to impul/HDWalletKit
that referenced
this issue
May 27, 2019
Hi, I believe that there is a problem in derivation and some time doesn't work well. I made some tests with testnet and validate results with https://iancoleman.io/bip39/ and it doesn't match.
I found that in the file internal.m (line 130) you save new private key like this
and I believe that you need to save new private key like this
Regards
The text was updated successfully, but these errors were encountered: