Skip to content

Commit

Permalink
rename milagro.nims -> miracl.nims (#165)
Browse files Browse the repository at this point in the history
Followup from #66 where we switched from Milagro to MIRACL Core.
The script to prepare C sources was not yet renamed. Doing now.
  • Loading branch information
etan-status authored Feb 17, 2024
1 parent 5d4837b commit 716a487
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ binaries destined for older CPUs, pass `-d:BLSTuseSSSE3=0` to the Nim compiler.
To keep track of upstream MIRACL Core:

- Update the submodule.
- Execute `nim e milagro.nims vendor/miracl-core/c blscurve/miracl/csources`
- Execute `nim e miracl.nims vendor/miracl-core/c blscurve/miracl/csources`
- Test
- Commit

Expand Down
8 changes: 4 additions & 4 deletions milagro.nims → miracl.nims
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env -S nim e
mode = ScriptMode.Verbose

## This script is Nim's replacement for config[32/64].py files of Milagro
## This script is Nim's replacement for config[32/64].py files of Miracl
## library. It performs configuration of BLS381 curve for both 32bit and
## 64bit limbs. It also removes random/hash/crypto related functions.
##
## Usage:
##
## nim e milagro.nims <srcpath> <dstpath>
## nim e miracl.nims <srcpath> <dstpath>
##
## <srcpath> - source path of milagro's C sources. By default current working
## <srcpath> - source path of miracl's C sources. By default current working
## path will be used.
## <dstpath> - destination path where two directories `32` and `64` will be
## created and populated with generated BLS381 sources. By default current
Expand Down Expand Up @@ -622,4 +622,4 @@ curveSet(srcPath, dstPath64, "381", "BLS12381", "BLS12381", "58", "1", "-3",
"-1", "NOT_SPECIAL", "0", "WEIERSTRASS", "0", "BLS12_CURVE",
"M_TYPE", "NEGATIVEX", "69", "65", "128")

echo "SUCCESS: Milagro source files was successfully prepared!"
echo "SUCCESS: Miracl source files was successfully prepared!"

0 comments on commit 716a487

Please sign in to comment.