
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@olympus-protocol/bls-wasm
Advanced tools
BLS signature for Node.js by WebAssembly for Olympus protocol
This module is built with BLS_ETH=1
for Ethereum 2.0 spec.
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_.setETHmode()
supports hash-to-curve defined at draft-irtf-cfrg-hash-to-curve at March 2020.Init as the followings:
bls.init(bls.BLS12_381)
bls.setETHmode(2)
(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)
bls.setETHmode(1)
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 orderThe msg
in the following means 40 bytes Uint8Array data.
SecretKey.signHashWithDomain(msg)
PublicKey.verifyHashWithDomain(sig, msg)
Signature.verifyAggregatedHashWithDomain(pubVec, msgVec)
see bls
node test.js
modified new BSD License http://opensource.org/licenses/BSD-3-Clause
MITSUNARI Shigeo(herumi@nifty.com) Julian Meyer julianmeyer2000@gmail.com
FAQs
BLS signature for Node.js by WebAssembly for Olympus protocol
We found that @olympus-protocol/bls-wasm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
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.