stakwork / sphinx-kotlin

MIT License
19 stars 11 forks source link

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

Open tomastiminskas opened 2 years ago

tomastiminskas commented 2 years ago

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 commented 2 years ago

Other library options that could be useful: