Skip to content

Fix finalizer check for sh(wpkh) #310

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
merged 1 commit into from
Mar 17, 2022

Conversation

sanket1729
Copy link
Member

@sanket1729 sanket1729 commented Mar 14, 2022

We should check the witness script hashes to the redeem script in the
nested sh wsh case. Not the script pubkey

Caught up integration tests

We should check at the witness script hashes to redeem script in the
nested sh wsh case. Not the script pubkey
@sanket1729 sanket1729 mentioned this pull request Mar 14, 2022
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 983b889

The new code looks weird and probably there should be a comment there -- but I won't hold up the PR for it. git blame will be pretty clear about what happened here.

@sanket1729 sanket1729 merged commit 29bed7e into rust-bitcoin:master Mar 17, 2022
sanket1729 added a commit that referenced this pull request Mar 21, 2022
13c4746 Update CI to test on 22.0 instead of 0.21 (sanket1729)
51126d3 Add taproot tests (sanket1729)
c25fc05 Add descriptor integration tests (sanket1729)
ae3c98e Move only: Rework Integration Test and makes things more modular (sanket1729)

Pull request description:

  This is the final PR testing of many of the new features in the taproot miniscript release. This defines a new template language for checking all the Psbt APIs (and thereby all the miniscript ones).

  ```rust
      // K : Compressed key available
      // K!: Compressed key with corresponding secret key unknown
      // X: X-only key available
      // X!: X-only key with corresponding secret key unknown

      // Test 1: Simple spend with internal key
      let wit = test_desc::test_desc_satisfy(cl, testdata, "tr(X)");
      assert!(wit.len() == 1);
  ```

  Right now, it does not test error cases, but I plan to update this framework so that we can also test those.

  Based on #308 and #310

ACKs for top commit:
  apoelstra:
    ACK 13c4746

Tree-SHA512: ce39c9b0242460e70f79c57843c69be36de045da6bcc686306a324c7fe58b70a5fe45e858c266a1f816f4e7f8aaf570fb42f64e543de86e2d786e1fa3fa0beb4
sanket1729 added a commit to sanket1729/elements-miniscript that referenced this pull request May 18, 2022
29bed7e Merge rust-bitcoin/rust-miniscript#310: Fix finalizer check for sh(wpkh)
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

Successfully merging this pull request may close these issues.

2 participants