The below code block is capable of generating a mnemonic seed phrase. If I want to generate a mnemonic seed for a private key, is it then correctly understood that I should input the private key as entropy factor, and how can I reverse engineer the private key knowing the mnemonic seed?

package main
    import (
    func main() {
        // generate some entropy from a hex string
        ent, _ := entropy.FromHex("8197a4a47f0425faeaa69deebc05ca29c0a5b5cc76ceacc0")
        // generate a Mnemonic in Japanese with the generated entropy
        jp, _ := mnemonic.New(ent, mnemonic.Japanese)
        // print the Mnemonic as a sentence

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.