-
Notifications
You must be signed in to change notification settings - Fork 831
Improve docs in sighash
and psbt/mod.rs
#956
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 52ec1cc56b10c9402ee1341fff0a212660033479
Converting to draft while we do the MSRV release. |
Improve the rustdoc documentation in the `sighash` module by doing: - Improve grammar - Use full sentences (full stops and capitalisation) - Use 100 line column width - Use back ticks and links as appropriate - Improve correctness of `SigHashCache::new` function
Improve documentation in `psbt/mod.rs` by doing: - Use full sentences (full stops and capitalisation) - Use 100 line column width - Use back ticks and links as appropriate - Use `Errors` section - Use third person tense to describe functions
52ec1cc
to
9896f27
Compare
Rebased after the edition 2018 shenanigans. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 9896f27
/// | ||
/// # Errors | ||
/// | ||
/// If transactions is not unsigned. | ||
pub fn from_unsigned_tx(tx: Transaction) -> Result<Self, Error> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside. As noted elsewhere, If we are consuming a value, we should return it in the Error
. Perhaps a good first issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACk 9896f27
…sbt/mod.rs` 9896f27 psbt: Improve documentation (Tobin C. Harding) 33a5083 sighash: Improve documentation (Tobin Harding) Pull request description: Done while working on sighash and PSBT signing. Just the usual docs fixes. Note, does not do the whole `psbt` module just the file mentioned. ACKs for top commit: apoelstra: ACK 9896f27 Tree-SHA512: 5fbfa258cdb216189922a49a42b7ab9fb78faeee72d82f8cb99a1b3d930d170074013e317b0e7af259a404ac4db93841b4d2b525e933c5e145da71e7522800fd
Done while working on sighash and PSBT signing. Just the usual docs fixes. Note, does not do the whole
psbt
module just the file mentioned.