
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
bls-oly-wasm
Advanced tools
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
The npm package bls-oly-wasm receives a total of 0 weekly downloads. As such, bls-oly-wasm popularity was classified as not popular.
We found that bls-oly-wasm demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.