
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
bls-eth-wasm
Advanced tools
This module is built with BLS_ETH=1
for Ethereum 2.0 spec.
{G1,G2}::isValidOrder()
bls.multiVerify
to verify all {sigs, pubs, msgs}.setETHmode(bls.ETH_MODE_DRAFT_07)
is default modeThe version v0.4.2
breaks backward compatibility of the entry point.
const bls = require('bls-eth-wasm')
const bls = require('bls-eth-wasm/browser')
<script src="https://herumi.github.io/bls-eth-wasm/browser/bls.js"></script>
Init as the followings:
bls.init(bls.BLS12_381)
(old) The new eth2.0 functions are supported. This mode will be removed in the future.
Init as the followings:
bls.init(bls.BLS12_381)
then, you can use the following functions.
bls-eth-wasm | eth2.0 spec name |
---|---|
SecretKey::sign | Sign |
PublicKey::verify | Verify |
Sign::aggregate | Aggregate |
Sign::fastAggregateVerify | FastAggregateVerify |
Sign::aggregateVerifyNoCheck | AggregateVerify |
The size of message must be 32 byte.
Check functions:
deserialize
check the correctness of the orderdeserialize
check the correctness of the ordersee bls
Install Emscripten.
cd src
git submodule update --init
make
node test.js
see bls-demo.
See browser/readme.md
to make browser/bls.js
.
const bls = require('bls-eth-wasm/browser')
modified new BSD License http://opensource.org/licenses/BSD-3-Clause
MITSUNARI Shigeo(herumi@nifty.com)
FAQs
BLS signature for Node.js by WebAssembly for Ethereum 2.0
We found that bls-eth-wasm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.