-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #257 from ArtiomTr/Bump-c-kzg-4844-commit
Bump C_KZG_4844_GIT_HASH
- Loading branch information
Showing
12 changed files
with
207 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From f34d21606bb5bc3dee4e7a643d7ab89a2c994fef Mon Sep 17 00:00:00 2001 | ||
From: sirse <artiom.tretjakovas2@gmail.com> | ||
Date: Thu, 25 Jan 2024 11:26:35 +0200 | ||
Subject: [PATCH] Patch nim bindings | ||
|
||
--- | ||
bindings/nim/kzg_abi.nim | 5 ++++- | ||
1 file changed, 4 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/bindings/nim/kzg_abi.nim b/bindings/nim/kzg_abi.nim | ||
index 36e4ba1..74d0ebc 100644 | ||
--- a/bindings/nim/kzg_abi.nim | ||
+++ b/bindings/nim/kzg_abi.nim | ||
@@ -10,6 +10,7 @@ from os import DirSep, AltSep | ||
const | ||
# kzgPath: c-kzg-4844 project path, removing 3 last elem | ||
kzgPath = currentSourcePath.rsplit({DirSep, AltSep}, 3)[0] & "/" | ||
+ rustKzgPath = currentSourcePath.rsplit({DirSep, AltSep}, 5)[0] & "/" | ||
blstPath = kzgPath & "blst/" | ||
srcPath = kzgPath & "src/" | ||
bindingsPath = blstPath & "bindings" | ||
@@ -20,7 +21,9 @@ when not defined(kzgExternalBlst): | ||
{.compile: blstPath & "src/server.c"} | ||
{.passc: "-D__BLST_PORTABLE__"} | ||
|
||
-{.compile: srcPath & "c_kzg_4844.c"} | ||
+{.passl: "-L" & rustKzgPath & "target/release" .} | ||
+{.passl: "-l:rust_kzg_arkworks.a" .} | ||
+{.passl: "-lm" .} | ||
|
||
{.passc: "-I" & bindingsPath .} | ||
{.passc: "-I" & srcPath .} | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From f34d21606bb5bc3dee4e7a643d7ab89a2c994fef Mon Sep 17 00:00:00 2001 | ||
From: sirse <artiom.tretjakovas2@gmail.com> | ||
Date: Thu, 25 Jan 2024 11:26:35 +0200 | ||
Subject: [PATCH] Patch nim bindings | ||
|
||
--- | ||
bindings/nim/kzg_abi.nim | 5 ++++- | ||
1 file changed, 4 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/bindings/nim/kzg_abi.nim b/bindings/nim/kzg_abi.nim | ||
index 36e4ba1..74d0ebc 100644 | ||
--- a/bindings/nim/kzg_abi.nim | ||
+++ b/bindings/nim/kzg_abi.nim | ||
@@ -10,6 +10,7 @@ from os import DirSep, AltSep | ||
const | ||
# kzgPath: c-kzg-4844 project path, removing 3 last elem | ||
kzgPath = currentSourcePath.rsplit({DirSep, AltSep}, 3)[0] & "/" | ||
+ rustKzgPath = currentSourcePath.rsplit({DirSep, AltSep}, 5)[0] & "/" | ||
blstPath = kzgPath & "blst/" | ||
srcPath = kzgPath & "src/" | ||
bindingsPath = blstPath & "bindings" | ||
@@ -20,7 +21,9 @@ when not defined(kzgExternalBlst): | ||
{.compile: blstPath & "src/server.c"} | ||
{.passc: "-D__BLST_PORTABLE__"} | ||
|
||
-{.compile: srcPath & "c_kzg_4844.c"} | ||
+{.passl: "-L" & rustKzgPath & "target/release" .} | ||
+{.passl: "-l:rust_kzg_blst.a" .} | ||
+{.passl: "-lm" .} | ||
|
||
{.passc: "-I" & bindingsPath .} | ||
{.passc: "-I" & srcPath .} | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From f34d21606bb5bc3dee4e7a643d7ab89a2c994fef Mon Sep 17 00:00:00 2001 | ||
From: sirse <artiom.tretjakovas2@gmail.com> | ||
Date: Thu, 25 Jan 2024 11:26:35 +0200 | ||
Subject: [PATCH] Patch nim bindings | ||
|
||
--- | ||
bindings/nim/kzg_abi.nim | 5 ++++- | ||
1 file changed, 4 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/bindings/nim/kzg_abi.nim b/bindings/nim/kzg_abi.nim | ||
index 36e4ba1..74d0ebc 100644 | ||
--- a/bindings/nim/kzg_abi.nim | ||
+++ b/bindings/nim/kzg_abi.nim | ||
@@ -10,6 +10,7 @@ from os import DirSep, AltSep | ||
const | ||
# kzgPath: c-kzg-4844 project path, removing 3 last elem | ||
kzgPath = currentSourcePath.rsplit({DirSep, AltSep}, 3)[0] & "/" | ||
+ rustKzgPath = currentSourcePath.rsplit({DirSep, AltSep}, 5)[0] & "/" | ||
blstPath = kzgPath & "blst/" | ||
srcPath = kzgPath & "src/" | ||
bindingsPath = blstPath & "bindings" | ||
@@ -20,7 +21,9 @@ when not defined(kzgExternalBlst): | ||
{.compile: blstPath & "src/server.c"} | ||
{.passc: "-D__BLST_PORTABLE__"} | ||
|
||
-{.compile: srcPath & "c_kzg_4844.c"} | ||
+{.passl: "-L" & rustKzgPath & "target/release" .} | ||
+{.passl: "-l:rust_kzg_constantine.a" .} | ||
+{.passl: "-lm" .} | ||
|
||
{.passc: "-I" & bindingsPath .} | ||
{.passc: "-I" & srcPath .} | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.