Skip to content

Commit

Permalink
chore: duplicate btc header validation to main repo #769 (#1766)
Browse files Browse the repository at this point in the history
Copies validation from the bitcoin-canister
[repo](https://github.com/dfinity/bitcoin-canister). This is done to
decouple the repos such that, for example, the bitcoin crate can be
updated independently.

---------

Co-authored-by: Tim Gretler <tim.gretler@dfinity.org>
Co-authored-by: IDX GitHub Automation <infra+github-automation@dfinity.org>
  • Loading branch information
3 people authored Oct 2, 2024
1 parent f8f2d84 commit 6ed8636
Show file tree
Hide file tree
Showing 19 changed files with 3,751 additions and 197 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ go_deps.bzl @dfinity/idx
/rs/bitcoin/kyt/ @dfinity/cross-chain-team
/rs/bitcoin/service/ @dfinity/networking
/rs/bitcoin/replica_types/ @dfinity/execution
/rs/bitcoin/validation @dfinity/networking @dfinity/execution
/rs/boundary_node/ @dfinity/boundary-node
/rs/canister_client/ @dfinity/networking
/rs/canister_sandbox/ @dfinity/execution
Expand Down
168 changes: 86 additions & 82 deletions Cargo.Bazel.Fuzzing.json.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "fcee70c1ac50c3d9ef35edbc61da2414360898fc1842a39b0596bfe977b93990",
"checksum": "9ef6df4a9a9699fa60c0deb0f30df0446a5aaa79555f9225b15f48ccb5afca4d",
"crates": {
"abnf 0.12.0": {
"name": "abnf",
Expand Down Expand Up @@ -18004,10 +18004,6 @@
"id": "ic-btc-test-utils 0.1.0",
"target": "ic_btc_test_utils"
},
{
"id": "ic-btc-validation 0.1.0",
"target": "ic_btc_validation"
},
{
"id": "ic-canister-log 0.2.0",
"target": "ic_canister_log"
Expand Down Expand Up @@ -28823,53 +28819,6 @@
],
"license_file": null
},
"ic-btc-validation 0.1.0": {
"name": "ic-btc-validation",
"version": "0.1.0",
"package_url": "https://github.com/dfinity/bitcoin-canister",
"repository": {
"Http": {
"url": "https://static.crates.io/crates/ic-btc-validation/0.1.0/download",
"sha256": "3e73b5f400b954d3ddb64706bd4392ef0b5829976606c2baa49e692181192761"
}
},
"targets": [
{
"Library": {
"crate_name": "ic_btc_validation",
"crate_root": "src/lib.rs",
"srcs": {
"allow_empty": false,
"include": [
"**/*.rs"
]
}
}
}
],
"library_target_name": "ic_btc_validation",
"common_attrs": {
"compile_data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "bitcoin 0.28.2",
"target": "bitcoin"
}
],
"selects": {}
},
"edition": "2021",
"version": "0.1.0"
},
"license": "Apache-2.0",
"license_ids": [
"Apache-2.0"
],
"license_file": null
},
"ic-canister-log 0.2.0": {
"name": "ic-canister-log",
"version": "0.2.0",
Expand Down Expand Up @@ -36585,56 +36534,112 @@
],
"crate_features": {
"common": [
"elf",
"errno",
"general",
"if_ether",
"ioctl",
"net",
"netlink",
"no_std",
"prctl",
"xdp"
"no_std"
],
"selects": {
"aarch64-linux-android": [
"if_ether",
"net",
"netlink",
"prctl",
"xdp"
],
"aarch64-unknown-linux-gnu": [
"elf",
"errno",
"system"
"if_ether",
"net",
"netlink",
"prctl",
"system",
"xdp"
],
"aarch64-unknown-nixos-gnu": [
"elf",
"errno",
"system"
"if_ether",
"net",
"netlink",
"prctl",
"system",
"xdp"
],
"arm-unknown-linux-gnueabi": [
"elf",
"errno",
"system"
"if_ether",
"net",
"netlink",
"prctl",
"system",
"xdp"
],
"armv7-linux-androideabi": [
"if_ether",
"net",
"netlink",
"prctl",
"xdp"
],
"armv7-unknown-linux-gnueabi": [
"elf",
"errno",
"system"
"if_ether",
"net",
"netlink",
"prctl",
"system",
"xdp"
],
"i686-linux-android": [
"if_ether",
"net",
"netlink",
"prctl",
"xdp"
],
"i686-unknown-linux-gnu": [
"elf",
"errno",
"system"
"if_ether",
"net",
"netlink",
"prctl",
"system",
"xdp"
],
"powerpc-unknown-linux-gnu": [
"system"
"if_ether",
"net",
"netlink",
"prctl",
"system",
"xdp"
],
"s390x-unknown-linux-gnu": [
"system"
"if_ether",
"net",
"netlink",
"prctl",
"system",
"xdp"
],
"x86_64-linux-android": [
"if_ether",
"net",
"netlink",
"prctl",
"xdp"
],
"x86_64-unknown-linux-gnu": [
"elf",
"errno",
"system"
"if_ether",
"net",
"netlink",
"prctl",
"system",
"xdp"
],
"x86_64-unknown-nixos-gnu": [
"elf",
"errno",
"system"
"if_ether",
"net",
"netlink",
"prctl",
"system",
"xdp"
]
}
},
Expand Down Expand Up @@ -79182,7 +79187,6 @@
"ic-bn-lib 0.1.0",
"ic-btc-interface 0.2.2",
"ic-btc-test-utils 0.1.0",
"ic-btc-validation 0.1.0",
"ic-canister-log 0.2.0",
"ic-canister-sig-creation 1.0.1",
"ic-cbor 2.6.0",
Expand Down
10 changes: 0 additions & 10 deletions Cargo.Bazel.Fuzzing.toml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3116,7 +3116,6 @@ dependencies = [
"ic-bn-lib",
"ic-btc-interface",
"ic-btc-test-utils",
"ic-btc-validation",
"ic-canister-log",
"ic-canister-sig-creation",
"ic-cbor",
Expand Down Expand Up @@ -5033,15 +5032,6 @@ dependencies = [
"bitcoin 0.28.2",
]

[[package]]
name = "ic-btc-validation"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e73b5f400b954d3ddb64706bd4392ef0b5829976606c2baa49e692181192761"
dependencies = [
"bitcoin 0.28.2",
]

[[package]]
name = "ic-canister-log"
version = "0.2.0"
Expand Down
Loading

0 comments on commit 6ed8636

Please sign in to comment.