Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,19 @@ jobs:

- name: Build with MSRV
run: |
# Ensure we're using the right version
rustc --version
# Build the project
cargo build --all-features --locked
cargo build --locked

- name: Build with MSRV (bitcoin feature)
run: |
rustc --version
cargo build --features bitcoin --locked

- name: Run tests with MSRV
run: cargo test --all-features --locked
run: cargo test --locked

- name: Run tests with MSRV (bitcoin feature)
run: cargo test --features bitcoin --locked

check-lock-files:
name: Check lock files
Expand Down Expand Up @@ -177,6 +183,9 @@ jobs:
- name: Run tests
run: cargo test -vv

- name: Run tests (bitcoin feature)
run: cargo test -vv --features bitcoin

linux-aarch64:
name: Build and Test on Linux ARM64
runs-on: ubuntu-24.04-arm
Expand All @@ -198,6 +207,9 @@ jobs:
- name: Build and test
run: cargo test -vv

- name: Run tests (bitcoin feature)
run: cargo test -vv --features bitcoin

macos-build:
name: Build and Test on macOS
runs-on: macos-latest
Expand All @@ -218,6 +230,9 @@ jobs:
- name: Build and test
run: cargo test -vv

- name: Run tests (bitcoin feature)
run: cargo test -vv --features bitcoin

fuzz-corpus:
name: Verify Fuzz Corpus
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- Added optional `bitcoin` feature flag that implements `Deref<Target = bitcoin::Script>` for `ScriptPubkey` and `ScriptPubkeyRef`, giving kernel script types the full `bitcoin::Script` API transparently.

### Changed
- The `verify` function's `flags` parameter now uses `ScriptVerificationFlags` instead of `u32`, making the type explicit in the public API.

Expand Down
117 changes: 108 additions & 9 deletions Cargo-minimal.lock
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ dependencies = [
"derive_arbitrary",
]

[[package]]
name = "arrayvec"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"

[[package]]
name = "base58ck"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c8d66485a3a2ea485c1913c4572ce0256067a5377ac8c75c4960e1cda98605f"
dependencies = [
"bitcoin-internals 0.3.0",
"bitcoin_hashes 0.14.0",
]

[[package]]
name = "bech32"
version = "0.9.0"
Expand All @@ -80,6 +96,12 @@ version = "0.10.0-beta"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98f7eed2b2781a6f0b5c903471d48e15f56fb4e1165df8a9a2337fd1a59d45ea"

[[package]]
name = "bech32"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"

[[package]]
name = "bimap"
version = "0.6.0"
Expand All @@ -93,11 +115,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5973a027b341b462105675962214dfe3c938ad9afd395d84b28602608bdcec7b"
dependencies = [
"bech32 0.10.0-beta",
"bitcoin-internals",
"bitcoin-internals 0.2.0",
"bitcoin_hashes 0.13.0",
"hex-conservative",
"hex-conservative 0.1.1",
"hex_lit",
"secp256k1",
"secp256k1 0.28.1",
]

[[package]]
name = "bitcoin"
version = "0.32.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9cf93e61f2dbc3e3c41234ca26a65e2c0b0975c52e0f069ab9893ebbede584d3"
dependencies = [
"base58ck",
"bech32 0.11.0",
"bitcoin-internals 0.3.0",
"bitcoin-io",
"bitcoin-units",
"bitcoin_hashes 0.14.0",
"hex-conservative 0.2.2",
"hex_lit",
"secp256k1 0.29.0",
]

[[package]]
Expand All @@ -106,12 +145,33 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9425c3bf7089c983facbae04de54513cce73b41c7f9ff8c845b54e7bc64ebbfb"

[[package]]
name = "bitcoin-internals"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30bdbe14aa07b06e6cfeffc529a1f099e5fbe249524f8125358604df99a4bed2"

[[package]]
name = "bitcoin-io"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17e5b76b88667412087beea1882980ad843b660490bbf6cce0a6cfc999c5b989"

[[package]]
name = "bitcoin-private"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73290177011694f38ec25e165d0387ab7ea749a4b81cd4c80dae5988229f7a57"

[[package]]
name = "bitcoin-units"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d437fd727271c866d6fd5e71eb2c886437d4c97f80d89246be3189b1da4e58b"
dependencies = [
"bitcoin-internals 0.3.0",
]

[[package]]
name = "bitcoin_hashes"
version = "0.12.0"
Expand All @@ -127,14 +187,25 @@ version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1930a4dabfebb8d7d9992db18ebe3ae2876f0a305fab206fd168df931ede293b"
dependencies = [
"bitcoin-internals",
"hex-conservative",
"bitcoin-internals 0.2.0",
"hex-conservative 0.1.1",
]

[[package]]
name = "bitcoin_hashes"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb18c03d0db0247e147a21a6faafd5a7eb851c743db062de72018b6b7e8e4d16"
dependencies = [
"bitcoin-io",
"hex-conservative 0.2.2",
]

[[package]]
name = "bitcoinkernel"
version = "0.2.1"
dependencies = [
"bitcoin 0.32.9",
"env_logger",
"hex",
"libbitcoinkernel-sys",
Expand Down Expand Up @@ -206,11 +277,11 @@ dependencies = [
name = "examples"
version = "0.0.1"
dependencies = [
"bitcoin",
"bitcoin 0.31.0",
"bitcoinkernel",
"env_logger",
"log",
"secp256k1",
"secp256k1 0.28.1",
"silentpayments",
]

Expand All @@ -226,6 +297,15 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30ed443af458ccb6d81c1e7e661545f94d3176752fb1df2f543b902a1e0f51e2"

[[package]]
name = "hex-conservative"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fda06d18ac606267c40c04e41b9947729bf8b9efe74bd4e82b61a5f26a510b9f"
dependencies = [
"arrayvec",
]

[[package]]
name = "hex_lit"
version = "0.1.1"
Expand Down Expand Up @@ -362,7 +442,17 @@ checksum = "3f622567e3b4b38154fb8190bcf6b160d7a4301d70595a49195b48c116007a27"
dependencies = [
"bitcoin_hashes 0.12.0",
"rand",
"secp256k1-sys",
"secp256k1-sys 0.9.2",
]

[[package]]
name = "secp256k1"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e0cc0f1cf93f4969faf3ea1c7d8a9faed25918d96affa959720823dfe86d4f3"
dependencies = [
"bitcoin_hashes 0.12.0",
"secp256k1-sys 0.10.0",
]

[[package]]
Expand All @@ -374,6 +464,15 @@ dependencies = [
"cc",
]

[[package]]
name = "secp256k1-sys"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1433bd67156263443f14d603720b082dd3121779323fce20cba2aa07b874bc1b"
dependencies = [
"cc",
]

[[package]]
name = "serde"
version = "1.0.0"
Expand Down Expand Up @@ -432,7 +531,7 @@ dependencies = [
"bimap",
"bitcoin_hashes 0.13.0",
"hex",
"secp256k1",
"secp256k1 0.28.1",
"serde",
"serde_json",
]
Expand Down
Loading
Loading