On Sat, 2021-03-20 at 21:25 +0100, vjudeu via bitcoin-dev wrote: > So, things have to be complicated to be secure?
Not at all. But we first need to spend some thoughts on what "secure" means before we can tell if something is secure. > By definition, using some private key, calculating some public key > from it and incrementing that key is secure (it is definitely no > worse than address reuse). If secure means that it does not hurt the unforgeability of ECDSA, then I believe you're right. > The only problem with using "privKey", "(privKey+1) mod n", > "(privKey+2) mod n" and so on is that all of those public keys could > be easily linked together. If that is the only problem, then by > making offset deterministic but less predictable, it should be secure > enough, right? So, instead of simple incrementation, we would have > "privKey" (parent), "(privKey+firstOffset) mod n" (first child), > "(privKey+secondOffset) mod n" (second child) and so on. And as long > as this offset is not guessed by the attacker, it is impossible to > link all of those keys together, right? I believe this intuition is also a good first approach. So let's have a look: You say that offset = SHA256(masterPublicKey || nonce). Is this predictable by the attacker? I can't really answer that question because it's not specified how "nonce" is obtained. Since this is supposed to be a deterministic scheme, I see two basic ways: Either the master private key is involved in the derivation of "nonce" (then "nonce" may be unpredictable) or it's not (then "nonce" is predictable). Another fact that may or not be a problem is that it may be possible to compute a parent private key from the a private key. Again, I can't tell because I don't know how nonce is obtained. Taking a step back, BIP 32 addresses all of these concerns. I agree it could be simpler but I don't see a practical necessity to invent a new scheme. In any application where this proposal could potentially be used, BIP 32 could also be used and it's just good enough. Tim > > > On 2021-03-20 11:08:30 user Tim Ruffing <[email protected]> > > wrote: > > > On Fri, 2021-03-19 at 20:46 +0100, vjudeu via bitcoin-dev wrote: > > > > is it safe enough to implement it and use in practice? > > > > > > This may be harsh but I can assure you that a HD wallet scheme > > > that can > > > be specified in 3 lines (without even specifying what the > > > security > > > goals are) should not be assumed safe to implement. > > > > > > Tim > > > > > > > > > > > > _______________________________________________ > bitcoin-dev mailing list > [email protected] > https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev _______________________________________________ bitcoin-dev mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
