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:
27
27
DO_LINT : true
28
28
run : ./contrib/test.sh
29
29
30
- bench_nightly :
31
- name : Bench + Tests
30
+ Nightly :
31
+ name : Bench + Docs
32
32
runs-on : ubuntu-latest
33
- strategy :
34
- matrix :
35
- rust :
36
- - nightly
37
33
steps :
38
34
- name : Checkout Crate
39
35
uses : actions/checkout@v2
40
36
- name : Checkout Toolchain
41
37
uses : actions-rs/toolchain@v1
42
38
with :
43
39
profile : minimal
44
- toolchain : ${{ matrix.rust }}
40
+ toolchain : nightly
45
41
override : true
46
- - name : Running cargo test
42
+ - name : Running benchmarks
47
43
env :
48
44
DO_BENCH : true
49
45
run : ./contrib/test.sh
46
+ - name : Building docs
47
+ env :
48
+ DO_DOCS : true
49
+ run : ./contrib/test.sh
50
50
51
51
UnitTests :
52
52
name : Tests
Original file line number Diff line number Diff line change @@ -44,12 +44,17 @@ cargo build --examples
44
44
# run all examples
45
45
run-parts ./target/debug/examples
46
46
47
- # Bench if told to
47
+ # Bench if told to (this only works with the nightly toolchain)
48
48
if [ " $DO_BENCH " = true ]
49
49
then
50
50
cargo bench --features=" unstable compiler"
51
51
fi
52
52
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
+
53
58
# Run Integration tests if told so
54
59
if [ -n " $BITCOINVERSION " ]; then
55
60
set -e
Original file line number Diff line number Diff line change @@ -242,13 +242,10 @@ impl fmt::Display for DescriptorPublicKey {
242
242
}
243
243
244
244
impl 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.
248
246
///
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.
252
249
pub fn to_public < C : Signing > (
253
250
& self ,
254
251
secp : & Secp256k1 < C > ,
Original file line number Diff line number Diff line change @@ -667,9 +667,9 @@ impl Descriptor<DescriptorPublicKey> {
667
667
668
668
/// Derive a [`Descriptor`] with a concrete [`bitcoin::PublicKey`] at a given index
669
669
/// 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.
673
673
///
674
674
/// # Examples
675
675
///
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ impl<'txin> Interpreter<'txin> {
217
217
}
218
218
219
219
/// 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 `]
221
221
/// should satisfy most use-cases.
222
222
/// Returns false if
223
223
/// - the signature verification fails
Original file line number Diff line number Diff line change @@ -553,8 +553,10 @@ pub trait PsbtExt {
553
553
/// # Arguments:
554
554
///
555
555
/// * `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
557
557
/// * `tapleaf_hash`: If the output is taproot, compute the sighash for this particular leaf.
558
+ ///
559
+ /// [`SighashCache`]: bitcoin::util::sighash::SighashCache
558
560
fn sighash_msg < T : Deref < Target = bitcoin:: Transaction > > (
559
561
& self ,
560
562
idx : usize ,
You can’t perform that action at this time.
0 commit comments