Open knocte opened 3 years ago
@NicolasDorier hey, I just realized that there already is a .ToBytes() method for Key, however:
Let me know what's best please.
It's not really in Key class, but it's an extension method of IBitcoinSerializable. Is it enough to have it there, or is it better that it lives in Key class for better visibility?
Yes.
Is the extension method as bad (performance wise) as my initial approach? If yes, I'll just go and do what you suggested (use same approach there is in PubKey).
Yes it is bad, that said in practice this should hardly matter but I think just using the PubKey approach is also simpler.
Yes.
Sorry, if I ask (A or B)? you cannot answer "Yes" unless you're trying to confuse me haha.
sorry lol, I think we should not add GetSeedBytes
when the extension method already have a ToBytes
that works.
This is very confusing for users, as they would not know which one to call.
My team uses this in more than one place and would be good to have it in NBitcoin out of the box.