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

SDK: Add coinbase data to the SPV proof builder #773

Merged
merged 4 commits into from
Jan 17, 2024
Merged

Conversation

lukasz-zimnoch
Copy link
Member

Refs: GHSA-wg2x-rv86-mmpx

The SPV proof verifier used by the Bridge contract has been changed. It now expects the coinbase's preimage and merkle proof to be submitted as part of the proven transaction's SPV proof. Here we adhere to this requirement by adjusting the SDK's SPV proof builder accordingly.

Note: Core changes presented in this PR are equivalent to keep-network/keep-core#3762

ABIs of some tBTC contracts changed recently. Here we bump up
relevant contract packages to fetch those changes and adjust the
SDK around.
This function allows to get the BTC coinbase transaction for the given
block height.
@lukasz-zimnoch lukasz-zimnoch self-assigned this Jan 17, 2024
@lukasz-zimnoch lukasz-zimnoch added the 🔌 typescript TypeScript library label Jan 17, 2024
@lukasz-zimnoch lukasz-zimnoch added this to the typescript/v2.4.0 milestone Jan 17, 2024
@tomaszslabon tomaszslabon merged commit b84d56a into main Jan 17, 2024
38 checks passed
@tomaszslabon tomaszslabon deleted the sdk-spv-coinbase branch January 17, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔌 typescript TypeScript library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants