-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge rivine fork #13
Conversation
+ generate a slice only when needed (most likely always) + ensure protection against negative offsets + generate the final output size at once, to avoid a double-alloc
the EntropyFromMnemonic function allows you to create an entropy byte slice, recovered from an earlier generated mnemonic using that entropy
Once this PR has been merged, I'll delete our fork and use your library directly for the Rivine blockchain project. Furthermore I would also be more than happy to help maintain this library where needed, given that we rely on it for a couple of projects, we would help ourselves as well, by helping out as a maintainer. If you agree, feel free to give me the required rights to help you do so. |
Merged ce3d5bb, 59d8316 , and 4028094. 4028094 is fine but has conflicts with b995a0b. b995a0b I don't understand. It appears to be providing a function ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I merged everything except EntropyFromMnemonic
which is nearly identical to the existing MnemonicToByteArray
. I do think EntropyFromMnemonic is a bit nicer but i'd hate to pollute the API. Do you think you couldl live with just having MnemonicToByteArray
until we can get a V2 API going?
1f6c1d8 provides the Also as far as I understand, You'll see the difference in effect immediately if you replace 1f6c1d8#diff-8308e211b6db3deb5bcefc410e02f7f9R437 with
Nope, I need this now, as I need to be able to recover a seed from a mnemonic, otherwise I'll have to keep using our fork. |
You're correct. I copy/pasted the wrong hash. I see what this is doing, and it's very inline with where I want to go. Eventually I want to remove Thanks for the addition. |
In this PR you'll find all useful changes that we made in the Rivine fork, applied to your go-bip39 library as it is in master.
As discussed in #7 (comment).