Skip to content

Commit

Permalink
rm bips and bech and use it from bitcoin-zig
Browse files Browse the repository at this point in the history
  • Loading branch information
StringNick committed Sep 3, 2024
1 parent 7404cfd commit aee895d
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 4,152 deletions.
7 changes: 7 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
});

const bitcoin_zig = b.dependency("bitcoin-zig", .{
.target = target,
.optimize = optimize,
});

const base58_module = b.dependency("base58-zig", .{
.target = target,
.optimize = optimize,
Expand Down Expand Up @@ -190,6 +195,7 @@ pub fn build(b: *std.Build) !void {
lib_unit_tests.root_module.addImport("secp256k1", secp256k1.module("secp256k1"));
lib_unit_tests.root_module.linkLibrary(secp256k1.artifact("libsecp"));
lib_unit_tests.root_module.addImport("httpz", httpz_module);
lib_unit_tests.root_module.addImport("bitcoin", bitcoin_zig.module("bitcoin"));
lib_unit_tests.root_module.addImport("base58", base58_module);

const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
Expand All @@ -214,6 +220,7 @@ pub fn build(b: *std.Build) !void {
bench.root_module.addImport("zul", zul);
bench.root_module.addImport("secp256k1", secp256k1.module("secp256k1"));
bench.root_module.linkLibrary(secp256k1.artifact("libsecp"));
bench.root_module.addImport("bitcoin", bitcoin_zig.module("bitcoin"));

const run_bench = b.addRunArtifact(bench);

Expand Down
4 changes: 4 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
.url = "https://github.com/zig-bitcoin/libsecp256k1-zig/archive/5f70bc5aa2a5ebc69c78a9a75fb83c2d7035bde1.zip",
.hash = "12208e2a2f181feabb9fa01db64232e9cdefdf1b8f2919f1dd7f24c2393cad2b947b",
},
.@"bitcoin-zig" = .{
.url = "git+https://github.com/zig-bitcoin/bitcoin-zig#f3af13008b088796697fc656e26d8c2ddf73dc18",
.hash = "1220d90650e0907125bc6035e3e10e10c088e9eb4de958b343a3cce5d7209ee5bbd4",
},
},
.paths = .{
"build.zig",
Expand Down
Loading

0 comments on commit aee895d

Please sign in to comment.