Skip to content

Instantly share code, notes, and snippets.

@fortmarek
Created October 11, 2018 13:56
Show Gist options
  • Save fortmarek/e0422a7e2e63f9ecfdc8abe00d0ff682 to your computer and use it in GitHub Desktop.
Save fortmarek/e0422a7e2e63f9ecfdc8abe00d0ff682 to your computer and use it in GitHub Desktop.
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),
]
) { [weak self] _ in
self?.testContract()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment