Bitcoin Forum
April 27, 2024, 08:26:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: SPV wallets which lets me verify blocks myself (e.g. BIP-157/Neutrino)?  (Read 330 times)
d5000 (OP)
Legendary
*
Offline Offline

Activity: 3892
Merit: 6115


Decentralization Maximalist


View Profile
June 29, 2023, 07:31:46 PM
Last edit: July 09, 2023, 11:37:53 PM by d5000
Merited by hugeblack (6), vapourminer (5), LoyceV (4), pooya87 (2), ABCbits (1), icopress (1)
 #1

(Disclaimer: I'm an advanced user but not really a wallet software expert.)

Due to the privacy limitations of SPV wallets like Electrum and Sparrow, in the case you use them connecting to public servers, I would like to know if there is a SPV wallet which does only rely on other nodes/servers to download block headers and certain groups of blocks to verify transactions myself, without sharing data like transaction IDs or addresses. Basically a client supporting BIP-157 (as ETFBitcoin wrote below) or a similar technique.

The use case* is the following:

Let's imagine I know (or I have stored) the times I should have sent or received payments. At least, I should know when I have created my wallet and in which years I was using it.

So the idea is to download (apart from the complete block header list) only the blocks in the periods I'm interested, and search for transactions involving my keys/addresses in them. (The correctness of the blocks depends on the source of my block header list of course, so minimal trust would still be required.)

The idea is that this way I could achieve a much higher level of privacy than with solutions like Electrum and Sparrow, which seem to share much more information with servers, for example address lists, so they're much less private. While the storage/bandwidth requirements would be much less than of a full node.

I believe the Monero app Feather works approximately this way (although without the possibility to select the blocks you need yourself).

Does something like this exist also for Bitcoin? (I haven't found something similar at bitcoin.org ...)



*I'm here not looking for a unspecific solution for a "personal" use case, for example cheap ways to run a full node, or a pruned node. The idea of this thread is to list solutions that exist for the technology mentioned in the topic title, so that users searching for a better SPV solution also benefit from the thread.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714249584
Hero Member
*
Offline Offline

Posts: 1714249584

View Profile Personal Message (Offline)

Ignore
1714249584
Reply with quote  #2

1714249584
Report to moderator
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2170
Merit: 4237


Join the world-leading crypto sportsbook NOW!


View Profile WWW
June 29, 2023, 07:45:46 PM
Merited by vapourminer (4), LoyceV (4), hugeblack (4), d5000 (2), Pmalek (2)
 #2

I'm not sure what type of hardware you're looking to use (i.e. a computer or a smartphone), but the only wallet that will provide you with the ability to do what you're requesting is Bitcoin Core.  I know, I know, 550GB to download the blockchain, but that's the point.  It's not only providing you with the privacy you want, but it's also supporting the blockchain and keeping bitcoin decentralized.  Obviously it's not going to work on a mobile device, but with your own full node running there are ways to connect your mobile wallets to it as well.

I don't know of any purely private wallets that can only download the blocks that are needed by your wallet (a pruned Bitcoin Core will actually do that, but only if the wallet.dat file was backed up within the last few days of opening it in the pruned version of core.)

Unfortunately, without an unpruned version of Bitcoin Core running locally, you're options (and privacy,) are limited.  Since you mentioned Sparrow, it can be used without a SPV server.  You can point it directly to an unpruned Bitcoin Core node running locally.

There is one wallet that purports to keep all your transactions private but I'm not sure how it works so I'm not recommending it, but Unstoppable Wallet claims to have those features.  It may be worth looking into.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
LoyceMobile
Hero Member
*****
Offline Offline

Activity: 1653
Merit: 686


LoyceV on the road. Or couch.


View Profile WWW
June 29, 2023, 07:53:51 PM
 #3

So, basically, you're looking to add fake data to your address to hide which ones are yours. This could more or less be accomplished by adding other addresses to a watch only Electrum wallet.

But isn't it much easier to use Electrum over Tor?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
d5000 (OP)
Legendary
*
Offline Offline

Activity: 3892
Merit: 6115


Decentralization Maximalist


View Profile
June 29, 2023, 07:57:43 PM
Last edit: June 29, 2023, 11:32:52 PM by d5000
 #4

I'm not sure what type of hardware you're looking to use (i.e. a computer or a smartphone),
I'm looking for a solution for a low-spec desktop computer/notebook.

I know a pruned Bitcoin Core node would also be an option, but the problem isn't so much the 500 MB-few GB of storage of this option, but the time until I'd have synced the blockchain. I'm looking for a solution which would be there instantly, to be used flexibly, like a SPV wallet.

If I don't find such a solution I'm perhaps even able to code it myself as an Electrum extension as I know a little bit Python.


There is one wallet that purports to keep all your transactions private but I'm not sure how it works so I'm not recommending it, but Unstoppable Wallet claims to have those features.  It may be worth looking into.
Thank you. I'm looking at it and if it has the feature I'm looking for, I'll report it in this thread Smiley

PS: seems to be mobile-only Sad Anyway. I'll take a look.

So, basically, you're looking to add fake data to your address to hide which ones are yours. This could more or less be accomplished by adding other addresses to a watch only Electrum wallet.
Not exactly. That could still be used for chain analysis, unless you really add tens of thousands of addresses (and then I think it would become a laggy monster). I think the approach to download and verify blocks myself is more private.

But isn't it much easier to use Electrum over Tor?
Of course, and that is also my current solution Smiley However, I'm looking for something a bit better Smiley Basically some intermediate step between "classic SPV" and "(pruned) Core".

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2170
Merit: 4237


Join the world-leading crypto sportsbook NOW!


View Profile WWW
June 29, 2023, 08:33:16 PM
Merited by PawGo (1)
 #5

If I don't find such a solution I'm perhaps even able to code it myself as an Electrum extension as I know a little bit Python.

If you have those types of skills I assume you're skilled enough to set up a Linux machine with a full core node and your own SPV server.  Even if your home network is behind CGNAT you'll be able to connect to it while you're on the go by using tor (even on mobile devices.)  I have a set up like that using Romanz Electrs, and it's been running great.  Romanz Electrs is super easy to set up and doesn't require a ton of additional recourses.  It gives you so many options, it's quite worth the effort and hardware.  No trust is required other than trusting the software itself, but that can be verified of course.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10505



View Profile
June 30, 2023, 06:21:53 AM
Merited by vapourminer (5), hugeblack (5), o_e_l_e_o (4), d5000 (3), ABCbits (3), Pmalek (2), DireWolfM14 (1)
 #6

The problem with your idea is its practicality otherwise it is pretty trivial to implement.
Normally you don't know when exactly you've received bitcoin and when exactly you've spent those coins. Even knowing a range is not going to help much because you'd have to download roughly 6 blocks per hour or 144 blocks per day which is high enough for a light client.

So the idea is to download (apart from the complete block header list) only the blocks in the periods I'm interested, and search for transactions involving my keys/addresses in them. (The correctness of the blocks depends on the source of my block header list of course, so minimal trust would still be required.)
There is no trust needed, just knowing that you are on the correct chain which is easy to do. You basically have to play around in the net_processing part of bitcoin core:
Step 1:
Initial connection is the same as a full node, fetching a list from seed nodes and building a listening node IP address database for future usages using the getaddr and addr messages.

Step 2:
Exactly as a full node, start by downloading the blockheader list from the hard-coded Genesis block to the tip from multiple different nodes with enough distance that makes it safe. You can also add hard-coded checkpoints to add an additional verification for the "map" of the chain you are downloading.
You can also do full verification on these headers just like a full node does (SPV clients should also do this). The verification includes version verification, PoW verification using the header hash and the shortened target in the header, difficulty verification with the target and finally time verifications.

The network messages involved are: version+verack (handshake), sendheaders, getheaders, and ping pong messages.

Step 3:
Now that you have a "map" of the whole blockchain use the time field in the headers to select the block(s) you want to download then send a getdata message (with the inventory set to block type and the hash(es) of the block(s) you want to download) to any full node from your connection list to download the full block from that node.
Then you can perform a limited verification on the block you received to make sure it is "correct". The important ones are deserializing and merkle root hash. This way you make sure all the transactions in the block you requested are received correctly and are associated with the header you requested. Here we rely on PoW and SHA256 both being secure.

Step 4:
Now that you have a block that you are sure is "correct" with the trust you put in the PoW, you can go through the inputs and outputs of each tx to see which one belongs to you and update your balance accordingly.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7407


Crypto Swap Exchange


View Profile
June 30, 2023, 09:54:37 AM
Merited by d5000 (3), pooya87 (3), Pmalek (2), hugeblack (1), DireWolfM14 (1)
 #7

What you're looking if wallet which support BIP 157[1]. AFAIK the only desktop wallet which support it is Wasabi Wallet which is controversial mainly due to surveillance on it's CoinJoin feature.

[1] https://github.com/bitcoin/bips/blob/master/bip-0157.mediawiki

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
June 30, 2023, 02:36:13 PM
 #8

If you have those types of skills I assume you're skilled enough to set up a Linux machine with a full core node and your own SPV server. (...)

Exactly. And having your own Electrum server you may use it not only with electrum, but also with Blue Wallet on your mobile, Trezor Suite etc.

By the way, how it would work, you expect to have a wallet connected to the node which keeps only blocks which contain data about your address? How about incoming transactions, do not you want to keep blocks which confirms validity of your inputs? How about the current state, if you want to create outgoing transaction you plan to keep the block and then download/ignore blocks which does not have information important for you?
d5000 (OP)
Legendary
*
Offline Offline

Activity: 3892
Merit: 6115


Decentralization Maximalist


View Profile
June 30, 2023, 07:08:49 PM
 #9

What you're looking if wallet which support BIP 157[1]. AFAIK the only desktop wallet which support it is Wasabi Wallet which is controversial mainly due to surveillance on it's CoinJoin feature.
Thanks! I've read through the BIP and it seems to be indeed what I'm looking for (so I put the BIP in the thread title as maybe it attracts someone who knows lesser known implementations). As Wasabi seems to be open source, maybe the relevant part can be "ported" into completely open/decentralized solutions like Electrum ...

@pooya87: Thank you; yes I've only recently looked in that file and I think I understand the way net_processing.cpp works approximately even not being fluent in C++. I still hope to not have to code that thing myself, but it seems I have to (or at least parts), so its possible I've to implement your idea Smiley

By the way, how it would work, you expect to have a wallet connected to the node which keeps only blocks which contain data about your address? How about incoming transactions, do not you want to keep blocks which confirms validity of your inputs?
Well at least Feather (afaik!) works quite simple: You set a start date for your wallet (when it was created or when the first transaction was done) and then all blocks after that one are verified (i.e. downloaded and validated) but only the important data is kept on disk. I would like to have a little bit finer-grained control, for example if I know that in some period in the middle I didn't receive nor sent transactions, I wouldn't have to download these blocks, so I don't waste bandwidth I don't need. BIP 157 seems to provide that. I think it wouldn't even be necessary to store entire blocks (those with the transactions), the relevant part of the merkle tree may be enough.

In Feather everything works smooth even downloading all blocks from the start date, something you have to wait a bit but in general it is of little issue. However, one has to take obviously into account that Bitcoin blocks are larger than Monero blocks (the difference is abysmal, XMR blocks seem to have only 15-400 kB, while BTC's are ~2-4 MB), so the verification time everytime you launch the app would be much higher.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
FinneysTrueVision
Sr. Member
****
Offline Offline

Activity: 1638
Merit: 353


Top Crypto Casino


View Profile
June 30, 2023, 10:21:18 PM
Merited by d5000 (2)
 #10

On mobile there is Breez Wallet an Blixt Wallet which use BIP157 and Neutrino for client-side block filtering. They will use more storage than a normal light wallet but it is still a fraction compared to running a full node.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
CASINO
.
SPORTS
.
RACING
OFFICIAL PARTNER OF
Argentina NT
CLOUD9
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
d5000 (OP)
Legendary
*
Offline Offline

Activity: 3892
Merit: 6115


Decentralization Maximalist


View Profile
July 01, 2023, 05:58:03 AM
 #11

On mobile there is Breez Wallet an Blixt Wallet which use BIP157 and Neutrino for client-side block filtering. They will use more storage than a normal light wallet but it is still a fraction compared to running a full node.
Neutrino seems to be the closest project until now for my requirements, thanks! I'll investigate if I can install it as a desktop client. The Neutrino client at Github (by Lightning Labs) seems to be more a "base technology" than a full-fledged desktop client (meant probably as a base to build mobile wallets like those your mentioned), and I had problems compiling/installing it due to dependencies, but that may be solvable. I've still however not 100% understood the trust model, it seems to be a client-server architecture - but is the Github program the client or the server or both? Have to investigate more.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7407


Crypto Swap Exchange


View Profile
July 02, 2023, 09:38:56 AM
 #12

What you're looking if wallet which support BIP 157[1]. AFAIK the only desktop wallet which support it is Wasabi Wallet which is controversial mainly due to surveillance on it's CoinJoin feature.
Thanks! I've read through the BIP and it seems to be indeed what I'm looking for (so I put the BIP in the thread title as maybe it attracts someone who knows lesser known implementations). As Wasabi seems to be open source, maybe the relevant part can be "ported" into completely open/decentralized solutions like Electrum ...

That's possible, but i never seen anyone attempt to fork Wasabi wallet or port specific feature on Wasabi wallet.

@pooya87: Thank you; yes I've only recently looked in that file and I think I understand the way net_processing.cpp works approximately even not being fluent in C++. I still hope to not have to code that thing myself, but it seems I have to (or at least parts), so its possible I've to implement your idea Smiley

Don't forget to check getblockfilter RPC command.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
NotATether
Legendary
*
Offline Offline

Activity: 1582
Merit: 6695


bitcoincleanup.com / bitmixlist.org


View Profile WWW
July 06, 2023, 10:23:47 AM
 #13

I'm not sure what type of hardware you're looking to use (i.e. a computer or a smartphone), but the only wallet that will provide you with the ability to do what you're requesting is Bitcoin Core.  I know, I know, 550GB to download the blockchain, but that's the point.  It's not only providing you with the privacy you want, but it's also supporting the blockchain and keeping bitcoin decentralized.  Obviously it's not going to work on a mobile device, but with your own full node running there are ways to connect your mobile wallets to it as well.

You can actually do this for far less than 550GB (and without a node) if someone scrapes all the gz.blockchair.com dumps for the Bitcoin chain and distributes it in a usable form, because it contains all the inputs/outputs, transactions, blocks, etc. and even address data for each individual day. Of course, you still have to rely on this dataset to be correct, but the worst that can happen if someone screws up is simply that broadcasted transactions get rejected.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
d5000 (OP)
Legendary
*
Offline Offline

Activity: 3892
Merit: 6115


Decentralization Maximalist


View Profile
July 07, 2023, 11:47:22 PM
 #14

I've looked into some of the wallets you recommended me:

- Unstoppable: On the website there is unfortunately no mention of the way the balances/accounts are synced. I think in any case I would have to look into the code.
- Breez Wallet and Blixt Wallet seem to be simply graphical frontends for Neutrino SPV (and also lnd) on mobile devices.

Maybe the best option I found until now is using the Bitcoin Dev Kit (BDK) for a very simple wallet implementation, which also supports Neutrino and thus BIP 157/158.

It would be however interesting too if Electrum or Sparrow devs plan to implement Neutrino eventually. I have found no related feature request though, but maybe someone knows Smiley

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5539


Self-proclaimed Genius


View Profile
July 08, 2023, 05:47:37 AM
 #15

I know a pruned Bitcoin Core node would also be an option, but the problem isn't so much the 500 MB-few GB of storage of this option, but the time until I'd have synced the blockchain. I'm looking for a solution which would be there instantly, to be used flexibly, like a SPV wallet.
It's actually doable but it's not recommended since your client wont be verifying the downloaded blocks, so you'll need to trust the integrity of your pruned blockchain.
That's basically defeating the purpose of using a Bitcoin Node.

Download at your own risk:
There's a user in GitHub who is hosting pruned blockchain which you can directly load in your newly installed Bitcoin Core.
Here's the link: https://github.com/Blockchains-Download/Bitcoin/releases (file names have the wrong year in the name)
Just follow the provided instructions by the owner, specifically those for "local Bitcoin client".

The data seem legit since it starts without errors and continue to sync up to the tip but as mentioned, it's not verified by my Bitcoin Core.
Also, you can't load an existing wallet.dat file or import old keys with txns past the pruned blocks, you can only create new wallets.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7407


Crypto Swap Exchange


View Profile
July 08, 2023, 10:55:21 AM
Merited by pooya87 (2)
 #16

It would be however interesting too if Electrum or Sparrow devs plan to implement Neutrino eventually. I have found no related feature request though, but maybe someone knows Smiley

I doubt it'll happen anytime soon since,
1. Electrum have it's own protocol, which usually referred as Electrum/Electrum server protocol.
2. Electrum currently lack of developer/contributor, which makes Taproot support still on works.
3. Sparrow already support 3 different method, which are Electrum protocol, Bitcoin Core RPC-JSON and BWT (with purpose connect to Bitcoin Core version below 24.0).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DaveF
Legendary
*
Offline Offline

Activity: 3458
Merit: 6235


Crypto Swap Exchange


View Profile WWW
July 08, 2023, 11:12:02 AM
 #17

I hate to just put this out there, and it really might be a US based thing, BUT 1 TB SSD are now under $50

https://www.microcenter.com/search/search_results.aspx?N=4294945779+4294818519+667&NTK=all&sortby=pricelow

so it's not like you can't have the entire blockchain and an OS and everything else you need on a decent drive. Older (6th gen) PCs are overkill for doing this and are also dirt cheap since they are for the most part 7+ years old.

There really is no cost involved with this the right way anymore.

Sorry if this seems grumpy, but you will spend more time trying to figure out a way not to spend a few dollars then the extra few dollars is worth.
And then pull your hair out dealing with issues because you tried to cut corners.

-Dave


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
d5000 (OP)
Legendary
*
Offline Offline

Activity: 3892
Merit: 6115


Decentralization Maximalist


View Profile
July 08, 2023, 04:46:16 PM
 #18

To be clear: I'm not looking exclusively for a solution for me or an use case of mine. I'm simply interested in the current "offers" which exist of a certain category of technological solution, which is what BIP-157-based software would offer, but for desktop and not for mobile. The idea is that also other people which are looking for a better SPV solution could "profit" from this thread. Maybe I should clarify that in the OP.

Thank you for all suggestions of the type "you should do this (e.g. use a full node) instead of that", but that's not the topic of this thread (please don't feel offended though). Smiley  (Of course I understand that it's also important for Bitcoin to count with a good number of full nodes, but again, this discussion is off topic here.)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DaveF
Legendary
*
Offline Offline

Activity: 3458
Merit: 6235


Crypto Swap Exchange


View Profile WWW
July 08, 2023, 05:46:57 PM
 #19

To be clear: I'm not looking exclusively for a solution for me or an use case of mine. I'm simply interested in the current "offers" which exist of a certain category of technological solution, which is what BIP-157-based software would offer, but for desktop and not for mobile. The idea is that also other people which are looking for a better SPV solution could "profit" from this thread. Maybe I should clarify that in the OP.

Thank you for all suggestions of the type "you should do this (e.g. use a full node) instead of that", but that's not the topic of this thread (please don't feel offended though). Smiley  (Of course I understand that it's also important for Bitcoin to count with a good number of full nodes, but again, this discussion is off topic here.)

No offense taken. At a quick read it looked like you were looking for something different.

Thinking about it this is where an independent database solution would be ideal. You can get rid of a bunch of stuff that you don't need a just stuff the data into a DB that you are querying.
What I can see being an issue is that what I want in the DB YOU might not want in the DB, so then by default the app is going to try to put everything into it.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
d5000 (OP)
Legendary
*
Offline Offline

Activity: 3892
Merit: 6115


Decentralization Maximalist


View Profile
July 09, 2023, 11:47:01 PM
 #20

Thinking about it this is where an independent database solution would be ideal. You can get rid of a bunch of stuff that you don't need a just stuff the data into a DB that you are querying.
What I can see being an issue is that what I want in the DB YOU might not want in the DB, so then by default the app is going to try to put everything into it.
It seems actually that no really decentralized end-user wallet solution exists for the technologies I'm looking for, so it may be indeed the best solution to code a minimal app with an independent database. As for the needed data, maybe it is enough with only store block data for blocks where a prior query found a transaction to/from the wallet addresses.

I was able to install the official Neutrino implementation by Lightning Labs now but there seems to be no way to run it as a standalone app. For a short moment I even thought of "abusing" lnd (which does run using neutrino as a kind of "lib"). But then I found the Bitcoin-s project, it seems to be a little bit more advanced in the direction I'm looking for, although its Neutrino support seems to be experimental and doesn't have an active mempool. I'll try to install this one, and write here about my experiences Smiley

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!