File tree Expand file tree Collapse file tree 6 files changed +24
-20
lines changed Expand file tree Collapse file tree 6 files changed +24
-20
lines changed Original file line number Diff line number Diff line change @@ -27,26 +27,26 @@ jobs:
2727 DO_LINT : true
2828 run : ./contrib/test.sh
2929
30- bench_nightly :
31- name : Bench + Tests
30+ Nightly :
31+ name : Bench + Docs
3232 runs-on : ubuntu-latest
33- strategy :
34- matrix :
35- rust :
36- - nightly
3733 steps :
3834 - name : Checkout Crate
3935 uses : actions/checkout@v2
4036 - name : Checkout Toolchain
4137 uses : actions-rs/toolchain@v1
4238 with :
4339 profile : minimal
44- toolchain : ${{ matrix.rust }}
40+ toolchain : nightly
4541 override : true
46- - name : Running cargo test
42+ - name : Running benchmarks
4743 env :
4844 DO_BENCH : true
4945 run : ./contrib/test.sh
46+ - name : Building docs
47+ env :
48+ DO_DOCS : true
49+ run : ./contrib/test.sh
5050
5151 UnitTests :
5252 name : Tests
Original file line number Diff line number Diff line change @@ -44,12 +44,17 @@ cargo build --examples
4444# run all examples
4545run-parts ./target/debug/examples
4646
47- # Bench if told to
47+ # Bench if told to (this only works with the nightly toolchain)
4848if [ " $DO_BENCH " = true ]
4949then
5050 cargo bench --features=" unstable compiler"
5151fi
5252
53+ # Build the docs if told to (this only works with the nightly toolchain)
54+ if [ " $DO_DOCS " = true ]; then
55+ RUSTDOCFLAGS=" --cfg docsrs" cargo doc --all --features=" $FEATURES "
56+ fi
57+
5358# Run Integration tests if told so
5459if [ -n " $BITCOINVERSION " ]; then
5560 set -e
Original file line number Diff line number Diff line change @@ -242,13 +242,10 @@ impl fmt::Display for DescriptorPublicKey {
242242}
243243
244244impl DescriptorSecretKey {
245- /// Return the public version of this key, by applying either
246- /// [`SinglePriv::to_public`] or [`DescriptorXKey<bip32::ExtendedPrivKey>::to_public`]
247- /// depending on the type of key.
245+ /// Returns the public version of this key.
248246 ///
249- /// If the key is an "XPrv", the hardened derivation steps will be applied before converting it
250- /// to a public key. See the documentation of [`DescriptorXKey<bip32::ExtendedPrivKey>::to_public`]
251- /// for more details.
247+ /// If the key is an "XPrv", the hardened derivation steps will be applied
248+ /// before converting it to a public key.
252249 pub fn to_public < C : Signing > (
253250 & self ,
254251 secp : & Secp256k1 < C > ,
Original file line number Diff line number Diff line change @@ -667,9 +667,9 @@ impl Descriptor<DescriptorPublicKey> {
667667
668668 /// Derive a [`Descriptor`] with a concrete [`bitcoin::PublicKey`] at a given index
669669 /// Removes all extended pubkeys and wildcards from the descriptor and only leaves
670- /// concrete [`bitcoin::PublicKey`]. All [`crate::XOnlyKey `]s are converted to [`bitcoin::PublicKey`]
671- /// by adding a default(0x02) y-coordinate. For [`crate::descriptor:: Tr`] descriptor,
672- /// spend info is also cached.
670+ /// concrete [`bitcoin::PublicKey`]. All [`bitcoin::XOnlyPublicKey `]s are converted
671+ /// to [`bitcoin::PublicKey`]s by adding a default(0x02) y-coordinate. For [`Tr`]
672+ /// descriptor, spend info is also cached.
673673 ///
674674 /// # Examples
675675 ///
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ impl<'txin> Interpreter<'txin> {
217217 }
218218
219219 /// Verify a signature for a given transaction and prevout information
220- /// This is a low level API, [`Interpreter::iter`] or [`Interpreter::iter_assume_sig `]
220+ /// This is a low level API, [`Interpreter::iter`] or [`Interpreter::iter_assume_sigs `]
221221 /// should satisfy most use-cases.
222222 /// Returns false if
223223 /// - the signature verification fails
Original file line number Diff line number Diff line change @@ -553,8 +553,10 @@ pub trait PsbtExt {
553553 /// # Arguments:
554554 ///
555555 /// * `idx`: The input index of psbt to sign
556- /// * `cache`: The [`sighash:: SighashCache`] for used to cache/read previously cached computations
556+ /// * `cache`: The [`SighashCache`] for used to cache/read previously cached computations
557557 /// * `tapleaf_hash`: If the output is taproot, compute the sighash for this particular leaf.
558+ ///
559+ /// [`SighashCache`]: bitcoin::util::sighash::SighashCache
558560 fn sighash_msg < T : Deref < Target = bitcoin:: Transaction > > (
559561 & self ,
560562 idx : usize ,
You can’t perform that action at this time.
0 commit comments