FWIW I’m pretty confident that if you stripped out anything extraneous here you’d end up with something that is 99.99% as CPU-/network-/memory-/etc-intensive as bitcoind with -maxmempool=0. It’s basically that or you jump to asking a server for SNARK proofs of the full chain.
You understood what I meant. The infrastructure is overblown for mobile. It needs to be 100x leaner.
Discussion
It could be. As long as the remaining processes run as a mobile app, not as deamon. The app show start, sync and be removed from memory every 15 mins or so. Than a separate Android Service simply listens to 0-conf transactions for simple notifications. The important part is a complete redesign of the interface to do the simplest thing Bitcoin does and nothing else.
I like it. We need more experimentation with bitcoin nodes. The biggest problem is recreating bitcoin consensus logic. You basically can't guarantee it will stay in consensus, so that's a bit of an issue...
You could probably get very far with blocks only mode. It has a mempool so you can simply drop every transaction you aren't interested in and keep the ones you are watching for via sendrawtransaction.
Not sure how you would learn about the transaction if your node isn't listening when it floods across the network. Perhaps a mempool nostr relay that just replays transactions as nostr events.
Yea, I mean you could just run bitcoind and provide that interface on top 🤷♂️.
How would I start? Where do I get more info to set it up properly? Like syncing in the background while the user can create wallet and receive funds, etc.
Yes vitor .. how to do so ?
There’s been a few things to package and run core on mobile before, so that seems like a good start. I imagine they mostly work about as good as it’s gonna get from a backend perspective, then you’d just have to build the frontend? I believe on Android you can run a second process so you can just RPC it. On iOS You might have to embed, but I think that’s doable? If not you could try to go the libbitcoinkernel route though that won’t get you a wallet or P2P or (I think) a mempool.
