Skip to content

Commit ccf4cb5

Browse files
committed
Merge remote-tracking branch 'upstream/master'
# Conflicts: # Cargo.toml
2 parents 64fa275 + 58a958e commit ccf4cb5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2026
-1744
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
DO_BENCH: true
2525
AS_DEPENDENCY: true
2626
DO_NO_STD: true
27+
DO_DOCS: true
2728
- rust: 1.29.0
2829
env:
2930
AS_DEPENDENCY: true
@@ -82,20 +83,6 @@ jobs:
8283
- name: run cross test
8384
run: cross test --target s390x-unknown-linux-gnu
8485

85-
Docs:
86-
name: Docs
87-
runs-on: ubuntu-latest
88-
steps:
89-
- name: Checkout Crate
90-
uses: actions/checkout@v2
91-
- name: Checkout Toolchain
92-
uses: actions-rs/toolchain@v1
93-
with:
94-
profile: minimal
95-
toolchain: stable
96-
override: true
97-
- name: Create Doc
98-
run: cargo doc
9986
Embedded:
10087
runs-on: ubuntu-latest
10188
steps:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
The previous release changed the behavior of `Display` for `ChildNumber`, assuming that any correct usage would not be
1515
affected. [Issue 608](https://github.com/rust-bitcoin/rust-bitcoin/issues/608) goes into the details of why this isn't
16-
the case and how we broke both `rust-miniscript` and BDK.
16+
the case and how we broke both `rust-miniscript` and BDK.
1717

1818
# 0.26.1 - 2021-06-06 (yanked, see explanation above)
1919

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ PR authors may also find it useful to run the following script locally in order
128128
to check that each of the commits within the PR satisfies the requirements
129129
above, before submitting the PR to review:
130130
```shell script
131-
BITCOIN_MSRV=1.29.0 ./contrib/ci.sh
131+
BITCOIN_MSRV=1.29.0 ./contrib/test.sh
132132
```
133133
Please replace the value in `BITCOIN_MSRV=1.29.0` with the current MSRV from
134134
[README.md].

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dashcore"
3-
version = "0.28.0-rc.1"
3+
version = "0.28.0-rc.2"
44
authors = ["Andrew Poelstra <[email protected]>"]
55
license = "CC0-1.0"
66
homepage = "https://github.com/dashevo/rust-dashcore/"
@@ -36,7 +36,7 @@ rustdoc-args = ["--cfg", "docsrs"]
3636
[dependencies]
3737
bech32 = { version = "0.8.1", default-features = false }
3838
bitcoin_hashes = { version = "0.10.0", default-features = false }
39-
secp256k1 = { version = "0.22.1", default-features = false }
39+
secp256k1 = { version = "0.22.0", default-features = false }
4040
core2 = { version = "0.3.0", optional = true, default-features = false }
4141

4242
base64-compat = { version = "1.0.0", optional = true }
@@ -47,7 +47,7 @@ hashbrown = { version = "0.8", optional = true }
4747
[dev-dependencies]
4848
serde_json = "<1.0.45"
4949
serde_test = "1"
50-
secp256k1 = { version = "0.22.1", features = [ "recovery", "rand-std" ] }
50+
secp256k1 = { version = "0.22.0", features = [ "recovery", "rand-std" ] }
5151
bincode = "1.3.1"
5252
# We need to pin ryu (transitive dep from serde_json) to stay compatible with Rust 1.22.0
5353
ryu = "<1.0.5"

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
1-
![Continuous integration](https://github.com/rust-bitcoin/rust-bitcoin/workflows/Continuous%20integration/badge.svg)
2-
[![Safety Dance](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)
1+
<div align="center">
2+
<h1>Rust Bitcoin</h1>
33

4-
# Rust Bitcoin Library
4+
<img alt="Rust Bitcoin logo by Hunter Trujillo, see license and source files under /logo" src="./logo/rust-bitcoin.png" width="300" />
5+
6+
<p>Library with support for de/serialization, parsing and executing on data-structures
7+
and network messages related to Bitcoin.
8+
</p>
9+
10+
<p>
11+
<a href="https://crates.io/crates/bitcoin"><img alt="Crate Info" src="https://img.shields.io/crates/v/bitcoin.svg"/></a>
12+
<a href="https://github.com/rust-bitcoin/rust-bitcoin/blob/master/LICENSE"><img alt="MIT or Apache-2.0 Licensed" src="https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg"/></a>
13+
<a href="https://github.com/rust-bitcoin/rust-bitcoin/actions?query=workflow%3AContinuous%20integration"><img alt="CI Status" src="https://github.com/rust-bitcoin/rust-bitcoin/workflows/Continuous%20integration/badge.svg"></a>
14+
<a href="https://docs.rs/bitcoin"><img alt="API Docs" src="https://img.shields.io/badge/docs.rs-bitcoin-green"/></a>
15+
<a href="https://blog.rust-lang.org/2018/09/13/Rust-1.29.html"><img alt="Rustc Version 1.29+" src="https://img.shields.io/badge/rustc-1.29%2B-lightgrey.svg"/></a>
16+
<a href="https://gnusha.org/bitcoin-rust/"><img alt="Chat on IRC" src="https://img.shields.io/badge/irc-%23bitcoin--rust%20on%20libera.chat-blue"></a>
17+
<img alt="Lines of code" src="https://img.shields.io/tokei/lines/github/rust-bitcoin/rust-bitcoin">
18+
</p>
19+
</div>
520

6-
Library with support for de/serialization, parsing and executing on data
7-
structures and network messages related to Bitcoin.
821

922
[Documentation](https://docs.rs/bitcoin/)
1023

@@ -104,7 +117,7 @@ You can run tests with:
104117
cargo test
105118
```
106119

107-
Please refer to the [`cargo` documentation](https://doc.rust-lang.org/stable/cargo/) for more detailed instructions.
120+
Please refer to the [`cargo` documentation](https://doc.rust-lang.org/stable/cargo/) for more detailed instructions.
108121

109122
## Pull Requests
110123

contrib/test.sh

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,27 @@ cargo test --verbose
3737

3838
if [ "$DO_NO_STD" = true ]
3939
then
40-
echo "********* Testing no-std build *************"
41-
# Build no_std, to make sure that cfg(test) doesn't hide any issues
42-
cargo build --verbose --features="no-std" --no-default-features
40+
echo "********* Testing no-std build *************"
41+
# Build no_std, to make sure that cfg(test) doesn't hide any issues
42+
cargo build --verbose --features="no-std" --no-default-features
4343

44-
# Build std + no_std, to make sure they are not incompatible
45-
cargo build --verbose --features="no-std"
44+
# Build std + no_std, to make sure they are not incompatible
45+
cargo build --verbose --features="no-std"
4646

47-
# Test no_std
48-
cargo test --verbose --features="no-std" --no-default-features
47+
# Test no_std
48+
cargo test --verbose --features="no-std" --no-default-features
4949

50-
# Build all features
51-
cargo build --verbose --features="no-std $FEATURES" --no-default-features
50+
# Build all features
51+
cargo build --verbose --features="no-std $FEATURES" --no-default-features
5252

53-
# Build specific features
54-
for feature in ${FEATURES}
55-
do
56-
cargo build --verbose --features="no-std $feature"
57-
done
53+
# Build specific features
54+
for feature in ${FEATURES}
55+
do
56+
cargo build --verbose --features="no-std $feature"
57+
done
5858

59-
cargo run --example bip32 7934c09359b234e076b9fa5a1abfd38e3dc2a9939745b7cc3c22a48d831d14bd
60-
cargo run --no-default-features --features no-std --example bip32 7934c09359b234e076b9fa5a1abfd38e3dc2a9939745b7cc3c22a48d831d14bd
59+
cargo run --example bip32 7934c09359b234e076b9fa5a1abfd38e3dc2a9939745b7cc3c22a48d831d14bd
60+
cargo run --no-default-features --features no-std --example bip32 7934c09359b234e076b9fa5a1abfd38e3dc2a9939745b7cc3c22a48d831d14bd
6161
fi
6262

6363
# Test each feature
@@ -67,6 +67,11 @@ do
6767
cargo test --verbose --features="$feature"
6868
done
6969

70+
# Build the docs if told to (this only works with the nightly toolchain)
71+
if [ "$DO_DOCS" = true ]; then
72+
RUSTDOCFLAGS="--cfg docsrs" cargo doc --all --features="$FEATURES"
73+
fi
74+
7075
# Fuzz if told to
7176
if [ "$DO_FUZZ" = true ]
7277
then

logo/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Rust Bitcoin Logo
2+
3+
## Files
4+
5+
Included are:
6+
7+
- [rust-bitcoin-inkscape.svg](./rust-bitcoin-inkscape.svg) - The Inkscape source file with the things used to make the logo in case adjustments are desired
8+
- [rust-bitcoin-optimized.svg](./rust-bitcoin-optimized.svg) - An optimized SVG for embedding or rendering at any size desired
9+
- [rust-bitcoin.png](./rust-bitcoin.png) - The PNG logo rendered at 300px used by this project
10+
- [rust-bitcoin-large.png](./rust-bitcoin-large.png) - A larger size 1024px x 1024px for convenience for embedding in presentations
11+
12+
## Author
13+
14+
Hunter Trujillo, @cryptoquick on [Twitter](https://twitter.com/cryptoquick), [GitHub](https://github.com/cryptoquick), and Telegram.
15+
16+
## License
17+
18+
Licensed in the public domain under [CC0 1.0 Universal Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/), and the author of this work rescinds all claims to copyright or coercion or acts of force from any nation state over this work for any purpose
19+
20+
Bitcoin Logo is licensed under the CC Public Domain Dedication: <https://bitcoin.stackexchange.com/a/53422> and <https://bitcointalk.org/index.php?topic=1631.0>
21+
22+
Rust Logo is licensed under CC-BY, which allows reuse and modifications for any purpose, as long as distributors give appropriate credit and indicate changes have been made. See here: <https://www.rust-lang.org/policies/media-guide>
23+
24+
## Acknowledgements
25+
26+
Acknowledgement for the runners up in this PR: https://github.com/rust-bitcoin/rust-bitcoin/pull/891#issuecomment-1074476858
27+
28+
In particular, the Rust Bitcoin Wizard gear was an incredibly inspired piece of art. Also, the meshed gears design was beloved by some but not all.
29+
30+
Thank you to the Rust Bitcoin maintainers and community, your timely responses and guidance was appreciated.
31+
32+
Also, thank you to the voters on the Rust in Bitcoin Telegram group: <https://t.me/rust_in_bitcoin/321>.

logo/rust-bitcoin-inkscape.svg

Lines changed: 244 additions & 0 deletions
Loading

logo/rust-bitcoin-large.png

85 KB
Loading

logo/rust-bitcoin-optimized.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)