Repository navigation
feat(rpc): add mining-transaction snapshot proofs #7107
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
Merged
PastaPastaPasta
merged 10 commits into
dashpay:develop
from
PastaPastaPasta:platform-sdk-compact-proof
Sep 18, 2026
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a0bcedb
feat(chainlock): read historical certificates from coinbases
PastaPastaPasta 02f1303
feat(llmq): construct and verify compact snapshot proofs
PastaPastaPasta d251014
feat(rpc): expose snapshot proof generation and verification
PastaPastaPasta 134f003
perf(rpc): reuse chain snapshots for proof lookups
PastaPastaPasta 569dbb0
fix(llmq): validate proof commitments independently of local network
PastaPastaPasta aa92b2b
fix(rpc): preserve quorum proof hash arguments as strings
PastaPastaPasta 67868ec
perf(chainlock): search monotonic historical certificates
PastaPastaPasta 8f7d38c
fix(rpc): retry proof targets across quorum retirement
PastaPastaPasta 5885d7b
fix: scope proof chain snapshot cache to chainstate
PastaPastaPasta 725f722
fix(llmq): accept every consensus-valid proof transaction shape
UdjinM6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| New RPCs | ||
| -------- | ||
|
|
||
| - Add `getquorumproofchain` and `verifyquorumproofchain` for compact mining-transaction | ||
| proofs from an independently trusted snapshot, plus `getchainlockbyheight` for | ||
| historical coinbase-carried certificates. The RPCs read required blocks on | ||
| demand, without an additional index or startup scan. Nodes must retain the | ||
| required historical blocks to generate proofs. (#7107) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| // Copyright (c) 2026 The Dash Core developers | ||
| // Distributed under the MIT software license, see the accompanying file COPYING. | ||
| #ifndef BITCOIN_LLMQ_QUORUMPROOFDATA_H | ||
| #define BITCOIN_LLMQ_QUORUMPROOFDATA_H | ||
| #include <primitives/block.h> | ||
| #include <serialize.h> | ||
| #include <uint256.h> | ||
| #include <vector> | ||
|
|
||
| namespace llmq { | ||
|
|
||
| inline constexpr size_t MAX_PROOF_BYTES = 1024 * 1024; | ||
| inline constexpr size_t MAX_PROOF_CERTIFICATES = 4096; | ||
| inline constexpr size_t MAX_PROOF_HEADERS = 4096; | ||
| struct ProofMerklePath { | ||
| uint32_t index{0}; | ||
| uint32_t count{0}; | ||
| std::vector<uint256> siblings; | ||
| SERIALIZE_METHODS(ProofMerklePath, obj) { READWRITE(obj.index, obj.count, obj.siblings); } | ||
| bool Verify(uint256 leaf, const uint256& root) const; | ||
| static ProofMerklePath Build(const std::vector<uint256>& leaves, uint32_t index); | ||
| }; | ||
|
|
||
| struct ProofTransaction { | ||
| std::vector<unsigned char> transaction; | ||
| ProofMerklePath path; | ||
| SERIALIZE_METHODS(ProofTransaction, obj) { READWRITE(obj.transaction, obj.path); } | ||
| bool Verify(const CBlockHeader& header) const; | ||
| static ProofTransaction Build(const CBlock& block, uint32_t index); | ||
| }; | ||
| } // namespace llmq | ||
| #endif // BITCOIN_LLMQ_QUORUMPROOFDATA_H |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.