From 5f2bbd07e3858e21fafc5073f230b4cb56e6e176 Mon Sep 17 00:00:00 2001 From: StringNick Date: Tue, 10 Sep 2024 14:53:07 +0200 Subject: [PATCH] bump libsecp256k1 on latest + check step for LSP --- build.zig | 3 +++ build.zig.zon | 4 ++-- src/bips/bip32/bip32.zig | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/build.zig b/build.zig index 7820416..e6c5f8d 100644 --- a/build.zig +++ b/build.zig @@ -71,4 +71,7 @@ pub fn build(b: *std.Build) void { const docs_step = b.step("docs", "Generate documentation"); docs_step.dependOn(&install_docs.step); + + const check_step = b.step("check", "Check step for LSP"); + check_step.dependOn(&run_lib_unit_tests.step); } diff --git a/build.zig.zon b/build.zig.zon index 2df33ac..b6a3ce5 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -24,8 +24,8 @@ // internet connectivity. .dependencies = .{ .secp256k1 = .{ - .url = "https://github.com/zig-bitcoin/libsecp256k1-zig/archive/5f70bc5aa2a5ebc69c78a9a75fb83c2d7035bde1.zip", - .hash = "12208e2a2f181feabb9fa01db64232e9cdefdf1b8f2919f1dd7f24c2393cad2b947b", + .url = "git+https://github.com/zig-bitcoin/libsecp256k1-zig#4036f3a70f161b3b60458737bb15bc856e27d97a", + .hash = "122083dda44da69d34f4803d858f599b6022b39b4e5e07d49f77d0f102957595fdba", }, }, .paths = .{ diff --git a/src/bips/bip32/bip32.zig b/src/bips/bip32/bip32.zig index 5475a6e..816069d 100644 --- a/src/bips/bip32/bip32.zig +++ b/src/bips/bip32/bip32.zig @@ -578,7 +578,7 @@ test "schnorr_broken_privkey_ffs" { } test "vector_1" { - var secp = try secp256k1.Secp256k1.genNew(); + var secp = secp256k1.Secp256k1.genNew(); defer secp.deinit(); var buf: [100]u8 = undefined; @@ -637,7 +637,7 @@ test "vector_1" { } test "vector_2" { - var secp = try secp256k1.Secp256k1.genNew(); + var secp = secp256k1.Secp256k1.genNew(); defer secp.deinit(); var buf: [100]u8 = undefined; @@ -696,7 +696,7 @@ test "vector_2" { } test "vector_3" { - var secp = try secp256k1.Secp256k1.genNew(); + var secp = secp256k1.Secp256k1.genNew(); defer secp.deinit(); var buf: [100]u8 = undefined;