Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Sep 18, 2024
2 parents 023d857 + 1981429 commit def8e8d
Show file tree
Hide file tree
Showing 7 changed files with 410 additions and 287 deletions.
2 changes: 1 addition & 1 deletion browser/bls.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bls-eth-wasm",
"version": "1.3.0",
"version": "1.4.0",
"description": "BLS signature for Node.js by WebAssembly for Ethereum 2.0",
"main": "src/index.js",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
This module is built with `BLS_ETH=1` for Ethereum 2.0 spec.

# News
- 2024/Sep/18 : About 10% performance improvement
- 2022/Jul/20 : 1.1 times improved
- 2021/Aug/28 : improve performance of `{G1,G2}::isValidOrder()`
- 2020/Nov/04 : break backward compatibility (bls.js is renamed to index.js)
- use blsSetupFactory to make bls instance on browser (see the top of bls-demo.js)
- 2020/Oct/01 : add `bls.multiVerify` to verify all {sigs, pubs, msgs}.
- 2020/Jul/06 ; `setETHmode(bls.ETH_MODE_DRAFT_07)` is default mode
- 2020/May/19 : Call `bls.setETHmode(bls.ETH_MODE_DRAFT_07)` once after `bls.init()` for `BLS_ETH_MODE_DRAFT_07` defined at [BLS12381G2_XMD:SHA-256_SSWU_RO_](https://www.ietf.org/id/draft-irtf-cfrg-hash-to-curve-07.html#name-bls12381g2_xmdsha-256_sswu_).
- `setETHmode()` supports hash-to-curve defined at [draft-irtf-cfrg-hash-to-curve](https://cfrg.github.io/draft-irtf-cfrg-hash-to-curve/draft-irtf-cfrg-hash-to-curve.txt) at March 2020.

## How to use
The version `v0.4.2` breaks backward compatibility of the entry point.
Expand Down
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ EMCC_OPT+=-Wall -Wextra
EMCC_OPT+=-O3 -DNDEBUG
EMCC_OPT+=-DMCL_SIZEOF_UNIT=4
EMCC_OPT+=-std=c++03 -fno-threadsafe-statics -fno-rtti -fno-stack-protector
EMCC_OPT+=-flto
EMCC_OPT+=-fno-exceptions
EMCC_OPT+=-DMCLBN_FORCE_EXPORT
EMCC_OPT+=-DMCL_MAX_BIT_SIZE=384
Expand Down
683 changes: 403 additions & 280 deletions src/bls_c.js

Large diffs are not rendered by default.

0 comments on commit def8e8d

Please sign in to comment.