8000 Add a method to psbt to compute find sighash type by rish-singhal · Pull Request #847 · rust-bitcoin/rust-bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add a method to psbt to compute find sighash type #847

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
Feb 27, 2022

Conversation

rish-singhal
Copy link
Contributor
@rish-singhal rish-singhal commented Feb 25, 2022

Fixes #838: Add a utility method to psbt to compute find sighash
type of a given input.

For now, I have changed my previous implementation as discussed in #838 to functional style code as suggested by @Kixunil.

Copy link
Member
@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

Code looks good

@@ -191,6 +191,22 @@ impl PsbtSigHashType {
}

impl Input {
/// Returns sighash_type.ecdsa_hash_ty() is sighash_type exists else
Copy link
Member

Choose a reason for hiding this comment

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

The documentation can updated as

/// Obtains the [EcdsaSigHashType] for this input if one is specified. If no sighash type is specified, returns ...
///
/// Errors:
/// If the sighash type is not a standard ecdsa sighash type

Same comment for schnorr

@sanket1729
Copy link
Member

You can cherry-pick #848 to get the CI working

Fixes rust-bitcoin#838: Add a utility method to psbt to compute find sighash
type of a given input.
@rish-singhal
Copy link
Contributor Author

Hi @sanket1729, thanks for the fix! I cherry-picked the commit and fixed the documentation issue.

8000

@apoelstra
Copy link
Member

You can remove the cherry-pick now :)

@apoelstra
Copy link
Member

ACK 4b1db0a934a8f795903fde9119aebf06c4aa740e but would prefer to see the cherry-pick removed.

@rish-singhal
Copy link
Contributor Author

ACK 4b1db0a but would prefer to see the cherry-pick removed.

removed the cherry-pick commit :)

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 fb04cab

Copy link
Collaborator
@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

ACK fb04cab

@apoelstra apoelstra merged commit c7ff483 into rust-bitcoin:master Feb 27, 2022
@rish-singhal rish-singhal deleted the issue-838 branch February 28, 2022 05:43
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.

Add a utility method to psbt to compute find sighash type of a given input
4 participants
0