pull down to refresh
100 sats \ 0 replies \ @kumulynja 29 May 2023 freebie \ on: LDK Node in Flutter can be used to create a Lightning wallet app bitcoin
Hi, thanks for having tried out the app already!
This is indeed a work in progress that I just started in my free time a couple of weeks ago. So it is correct, until now it only generates a mnemonic. This weekend I added logic to derive a seed for the ldk_node from the mnemonic following the unified wallet approach as described in the docs of ldk. This way the same mnemonic can be used for both the lightning node wallet as for a separate bitcoin on-chain wallet that can be used for savings for example.
I also worked on structuring the LightningNodeRepository and lightning node BLoC better. The idea here is to abstract all ldk_node internals into the LightningNodeRepository and expose different streams there, like payment stream, channel stream etc. This way a general lightning node bloc can exist, which has general configurations like the network, nodeId, alias etc and can be used to configure, start and stop the node, and other blocs can exist like a wallet or payment bloc and a channel bloc, that can all use the LightningNodeRepository.
I will try to finish this setup as soon as possible and try to get the ldk_node running at least.
Also, every feedback and help is welcome, since I am doing this OpenSource you can always make pull requests so we get this demo app finished sooner and other devs or companies can use it as a starting point or import the repository packages and create their own blocs easily.