Hello there,
according to the documentation an Electrum wallet is able to verify transactions by its own using the SPV technique.
https://electrum.readthedocs.io/en/latest/spv.html#spvSPV makes it pretty easy for my wallet to make sure that my transaction is included in the Bitcoin blockchain. That's because my wallet knows all block headers of the entire chain (right?).
My Question: Is there a way for my wallet to verify that a block (header) is part of the Bitcoin blockchain. If so, how does it work?
My thoughts: If I want to verify a block I need to check if the hash fulfillfs the conditions of the target. To check that I need to know the correct target. Is there any way to proof (or to be very sure) that a target is
correct (e.g. taking a look at blocks in the past, ...)
My aim: I want to proof that a target is correct at
any time for one of my projects (kind of a SPV-Client). I was trying to find some approaches in the documentation of electrum (how they do it). But I didn't.
I'd love to read your answers. :-) Many thanks to everyone reading my question.
Tym