Last active
October 29, 2018 09:02
-
-
Save fortmarek/34e253aec97b9b41bfc259e3a34e593c 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
// Use your own mnemonic sentence | |
let sentence: Mnemonic.MnemonicSentence = Mnemonic.MnemonicSentence(["truly", "law", "tide", "pony", "media", "degree", "two", "goat", "ignore", "twice", "project", "message", "vanish", "spring", "movie"]) | |
let walletStorage = KeychainStorageStrategy(identifier: "cz.ackee.etherkit.example") | |
HDKey.Private.create( | |
with: MnemonicStorageStrategy(walletStorage), | |
mnemonic: sentence, | |
network: .main, | |
path: [ | |
KeyPathNode(at: 44, hardened: true), | |
KeyPathNode(at: 60, hardened: true), | |
KeyPathNode(at: 0, hardened: true), | |
KeyPathNode(at: 0), | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment