sphinx-kotlin icon indicating copy to clipboard operation
sphinx-kotlin copied to clipboard

Non-Custodial #1: KeyGen on the client #202 #55

Open tomastiminskas opened this issue 2 years ago • 1 comments

The first step of making Sphinx non-custodial is to generate secrets on the phone, that are never passed to relay.

Generate a 32-byte random secret in a secure way. This is referred to as the ENTROPY

https://github.com/zcash/kotlin-bip39 val mnemonicCode = MnemonicCode(ENTROPY_BYTES) The mnemonic will then be passed to the Sphinx Key to initialize the Validating Lightning Signer

tomastiminskas avatar May 04 '22 18:05 tomastiminskas

Other library options that could be useful:

  • https://github.com/hoanghiephui/unstoppable-wallet-android

  • https://github.com/bitcoinj/bitcoinj (Tutorial: https://medium.com/@januprasad/h-d-wallet-implementation-da9ad472385c)

tomastiminskas avatar May 05 '22 14:05 tomastiminskas