
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@0xcert/merkle
Advanced tools
Implementation of basic functions of binary Merkle tree.
This module handles binary trees like this (v = value, n = node, r = nonce):
n0
|
---------
| |
n1 n2
| |
|-----| |
v0 r0 |
---------
| |
n3 n4
| |
|-----| |
v1 r1 r2
A user defines an array of values where these values are hashed into an imprint
, which is a merkle root tree hash. A user can expose selected values to a third-party by providing the evidence file which includes a recipe of values
and nodes
. This file holds enough information for a third-party to recreate the imprint.
import { sha } from '@0xcert/utils';
import { Merkle } from '@0xcert/merkle';
const merkle = new Merkle({
hasher: (v, p, k) => sha(256, v),
noncer: (p) => Math.random().toString(36).substring(7),
});
const values = ['A', 'B', 'C', 'D', 'E'];
const expose = [2, 3];
const fullRecipe = await merkle.notarize(values);
const minRecipe = await merkle.disclose(fullRecipe, expose);
const imprint = await merkle.imprint(minRecipe);
The 0xcert Framework is a free and open-source JavaScript library that provides tools for building powerful decentralized applications. Please refer to the official documentation for more details.
This module is one of the bricks of the 0xcert Framework. It's written with TypeScript and it's actively maintained. The source code is available on GitHub where you can also find our issue tracker.
FAQs
Implementation of basic functions of binary Merkle tree.
The npm package @0xcert/merkle receives a total of 394 weekly downloads. As such, @0xcert/merkle popularity was classified as not popular.
We found that @0xcert/merkle 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.