Skip to content

Commit

Permalink
replace 'bitcoin' with 'qtum' references
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoacosta74 committed Dec 24, 2023
1 parent c444bf6 commit 3e7161d
Show file tree
Hide file tree
Showing 600 changed files with 39 additions and 38 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[workspace]
members = ["bitcoin", "hashes", "internals"]
members = ["qtum", "hashes", "internals"]

[patch.crates-io.bitcoin_hashes]
path = "hashes"
11 changes: 6 additions & 5 deletions hashes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "bitcoin_hashes"
version = "0.12.0"
authors = ["Andrew Poelstra <[email protected]>"]
name = "qtum_hashes"
version = "0.12.0-qtum"
authors = ["Andrew Poelstra <[email protected]>", "The Qtum developers"]
license = "CC0-1.0"
repository = "https://github.com/rust-bitcoin/bitcoin_hashes/"
repository = "https://github.com/qtumproject/rust-qtum/hashes/"
documentation = "https://docs.rs/bitcoin_hashes/"
description = "Hash functions used by the rust-bitcoin eccosystem"
categories = ["algorithms"]
keywords = [ "crypto", "bitcoin", "hash", "digest" ]
readme = "README.md"
edition = "2018"
exclude = ["tests", "contrib"]
autotests = false

[features]
default = ["std"]
Expand All @@ -24,7 +25,7 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
internals = { path = "../internals", package = "bitcoin-private", version = "0.1.0" }
internals = { path = "../internals", package = "qtum-private", version = "0.1.0-qtum" }

core2 = { version = "0.3.0", default_features = false, optional = true }
# Only enable this if you explicitly do not want to use "std", otherwise enable "serde-std".
Expand Down
9 changes: 5 additions & 4 deletions internals/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "bitcoin-private"
version = "0.1.0"
authors = ["Andrew Poelstra <[email protected]>", "The Rust Bitcoin developers"]
name = "qtum-private"
version = "0.1.0-qtum"
authors = ["Andrew Poelstra <[email protected]>", "The Rust Bitcoin developers", "The Qtum developers"]
license = "CC0-1.0"
repository = "https://github.com/rust-bitcoin/rust-bitcoin/"
repository = "https://github.com/qtumproject/rust-qtum/internals"
documentation = "https://docs.rs/bitcoin-private"
description = "Internal types and macros used by rust-bitcoin ecosystem"
categories = ["cryptography::cryptocurrencies"]
keywords = ["internal"]
readme = "README.md"
edition = "2018"
exclude = ["tests", "contrib"]
autotests = false

[features]
default = []
Expand Down
File renamed without changes.
13 changes: 7 additions & 6 deletions bitcoin/Cargo.toml → qtum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "bitcoin"
name = "qtum"
version = "0.30.0-qtum"
authors = ["Andrew Poelstra <[email protected]>"]
authors = ["Andrew Poelstra <[email protected]>", "The Qtum developers"]
license = "CC0-1.0"
repository = "https://github.com/rust-bitcoin/rust-bitcoin/"
repository = "https://github.com/qtumproject/rust-qtum/qtum"
documentation = "https://docs.rs/bitcoin/"
description = "General purpose library for using and interoperating with Bitcoin."
description = "General purpose library for using and interoperating with Qtum."
categories = ["cryptography::cryptocurrencies"]
keywords = [ "crypto", "bitcoin" ]
keywords = [ "crypto", "bitcoin", "qtum" ]
readme = "../README.md"
edition = "2018"
exclude = ["tests", "contrib"]
autotests = false

[features]
default = [ "std", "secp-recovery" ]
Expand All @@ -34,7 +35,7 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
bitcoin-internals = { path = "../internals", package = "bitcoin-private", version = "0.1.0" }
bitcoin-internals = { path = "../internals", package = "qtum-private", version = "0.1.0-qtum" }
bech32 = { version = "0.9.0", default-features = false }
bitcoin_hashes = { version = "0.12.0", default-features = false }
secp256k1 = { version = "0.27.0", default-features = false, features = ["bitcoin_hashes"] }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions bitcoin/examples/bip32.rs → qtum/examples/bip32.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
extern crate bitcoin;
extern crate qtum;

use std::str::FromStr;
use std::{env, process};

use bitcoin::address::Address;
use bitcoin::bip32::{ChildNumber, DerivationPath, ExtendedPrivKey, ExtendedPubKey};
use bitcoin::hashes::hex::FromHex;
use bitcoin::secp256k1::ffi::types::AlignedType;
use bitcoin::secp256k1::Secp256k1;
use bitcoin::PublicKey;
use qtum::address::Address;
use qtum::bip32::{ChildNumber, DerivationPath, ExtendedPrivKey, ExtendedPubKey};
use qtum::hashes::hex::FromHex;
use qtum::secp256k1::ffi::types::AlignedType;
use qtum::secp256k1::Secp256k1;
use qtum::PublicKey;

fn main() {
// This example derives root xprv from a 32-byte seed,
Expand All @@ -28,7 +28,7 @@ fn main() {
println!("Seed: {}", seed_hex);

// default network as mainnet
let network = bitcoin::Network::Qtum;
let network = qtum::Network::Qtum;
println!("Network: {:?}", network);

let seed = Vec::from_hex(seed_hex).unwrap();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 3e7161d

Please sign in to comment.