Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof size optimization #30

Open
jjyr opened this issue Apr 19, 2024 · 1 comment
Open

Proof size optimization #30

jjyr opened this issue Apr 19, 2024 · 1 comment

Comments

@jjyr
Copy link
Contributor

jjyr commented Apr 19, 2024

A Suggestion for Future Implementation

Suggested by @yangby-cryptape

  • The gettxoutproof interface in Bitcoin supports verifying multiple transactions in one proof, which can effectively reduce size.
  • Separate transaction proofs for different transactions within the same block contain a significant amount of identical data. (For example, each transaction proof includes a block header. Batch processing n transactions within the same block could save n-1 block headers.)
@yangby-cryptape
Copy link
Contributor

The implementation has three parts:

p.s. SPV service is not responsible for collect then aggregate outputs which in the same block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants