Created
May 21, 2018 21:20
-
-
Save liamsi/b14eec5d6e273c27c95c74a4200ddd37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
tyler "github.com/tyler-smith/go-bip39" | |
bartekn "github.com/bartekn/go-bip39" | |
) | |
func main() { | |
entropy,_ := hex.DecodeString("000CF70C02EA90959B78FB43F683A690") | |
mne, err := tyler.NewMnemonic(entropy) | |
fmt.Println(mne) | |
fmt.Println(err) | |
b, err := tyler.MnemonicToByteArray(mne) | |
fmt.Printf("%X \n", b) | |
fmt.Println(err) | |
b, err = bartekn.MnemonicToByteArray(mne) | |
fmt.Printf("%X \n", b) | |
fmt.Println(err) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here tyler's lib doesn't do anything and complains (while verifying the checksum):