Skip to content

Commit

Permalink
Merge pull request #24 from zig-bitcoin/secp256k1-check-step
Browse files Browse the repository at this point in the history
bump libsecp256k1 on latest + check step for LSP
  • Loading branch information
AbdelStark authored Sep 10, 2024
2 parents ba12e8b + 5f2bbd0 commit e96b4f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -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 = .{
Expand Down
6 changes: 3 additions & 3 deletions src/bips/bip32/bip32.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e96b4f0

Please sign in to comment.