Conversation
Similar commit as MetacoSA@ce7598f
d6061a5 to
5eb755e
Compare
| return new BitcoinSecret(this, network); | ||
| } | ||
|
|
||
| public byte[] GetSeedBytes() |
There was a problem hiding this comment.
Call it ToBytes and follow how I implemented it in PubKey.
Your version is super inefficient.
| public byte[] GetSeedBytes() | ||
| { | ||
| AssertNotDiposed(); | ||
| byte[] bytes = Enumerable.Repeat((byte)0x00, KEY_SIZE).ToArray(); |
There was a problem hiding this comment.
new byte[32] is clearly overrated
There was a problem hiding this comment.
oops! didn't realize that the bytes would be overriden later anyway, was just monkey-translating F# code to C# code from somewhere else
|
@NicolasDorier hey, I just realized that there already is a .ToBytes() method for Key, however:
Let me know what's best please. |
Yes.
Yes it is bad, that said in practice this should hardly matter but I think just using the PubKey approach is also simpler. |
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 |
878114e to
24301c6
Compare
d114a5d to
e4c0829
Compare
725a14b to
bbcaf18
Compare
My team uses this in more than one place and would be good to have it in NBitcoin out of the box.