
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@olympus-protocol/bls-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
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.