sphinx-kotlin
sphinx-kotlin copied to clipboard
Non-Custodial #1: KeyGen on the client #202 #55
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
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)