mempoolco / spruned

A Bitcoin-without-Blockchain client w/ RPC that can fetch any block or transaction
MIT License
170 stars 35 forks source link

electrod: cryptoverify transactions #27

Closed gdassori closed 6 years ago

gdassori commented 6 years ago

Merkle tree validation for transactions

Handle 2 cases:

(We don't have yet inclusion blocks for transactions, need PR https://github.com/kyuupichan/electrumx/pull/397 to spread across servers to avoid too much errors, maybe Q2 2018).

gdassori commented 6 years ago

Another option may be to push a bloom filter on the P2P net with the scripts involved in the transaction to obtain the related blocks. This also reduces the dependency from the electrum network.

gdassori commented 6 years ago

transactions are crypto verified and then stored into a volatile sessionscoped dictionary.

067cbb928578ee1755c27f915eba1238b76f7387