-
Notifications
You must be signed in to change notification settings - Fork 1k
Conversation
This is to avoid any accidental upgrades to a bugfixed version without awareness of the change.
As mentioned in #115: It's very important that the different derivation methods are not confused, as such by including both Futhermore:
|
Thanks for the continued feedback. It is true that the cache can be removed separately. My idea was that if we know we are going to remove it anyway, it seems reasonable to forgo adding additional complexity to the cache logic when we could just remove the whole thing now. If we want to make it an atomic change, which is probably a good idea, we can make that change first, and then make the bip32 changes on top of that. I will make a separate PR for that. #117 To clarify, this is not for v1.0.0. This is meant to be an immediate change so that we can start making future-compatible changes to copay/BWC. v1.0.0 will involve other changes, and we don't want to wait until everything else for v1.0.0 is ready before using this new bip32 code. The goal is to add new methods for now and not break the API yet. When we were first talking about this, the idea was for these new methods to be undocumented. I have warnings in the jsdocs that Good catch about the |
ACK |
1 similar comment
ACK |
Still don't think it's a good idea to have both NACK |
ACK |
Also I would like to point out the deprecation warning says 0ffffff... is the problem (which implies a 1 / 16 rate of occurrence.) but it's actually 00ffffffff... (the first byte of the Buffer object created by BigNumber.toByteArrayUnsigned() get's dropped because it doesn't zero pad) The actual occurrence rate in my tests is 1/256 per hard derivation, so each BIP44 wallet there's a 3/256 chance the first account hits the problem, and each additional account has a 1/256 of being a bad account. |
Waiting for the fix.. Any date? |
@NicSil it is already fixed. |
Here is the code used to get the address:
How to you suggest to use deriveChild() to fix it? |
1. Update bitcore-mnemonic to the latest version
2. use .deviceChild instead of .derive
…On Sun, Mar 26, 2017 at 6:19 AM, NiS ***@***.***> wrote:
Here is the code used to get the address:
var Mnemonic = require('bitcore-mnemonic'); // https://bitcore.io/api/mnemonic/
exports.createWallet = function(seed) {
var seed = new Mnemonic(seed);
var hdPrivateKey = seed.toHDPrivateKey(); // https://bitcore.io/api/lib/hd-keys
var derived = hdPrivateKey.derive("m/44'/0'/0'/0/0");
var privateKey = derived.privateKey;
var address = privateKey.toAddress();
return {
seed: seed,
address: address
};
How to you suggest to use deriveChild() to fix it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGCHJq_G4SObpHI-kdiHPhqN1ugqXDvks5rpi2JgaJpZM4LGCud>
.
--
Matías Alejo Garcia
@EMATIU
Roads? Where we're going, we don't need roads!
|
Thanks. For "opera gadget typical file radio obvious inform concert beauty price also become" I get: For "surface poem manual curve size banner truly just object soup inhale craft" 1CyEf...LavBmi was the one that did not work in Mycelium (but in Copay). |
#96 #97