Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@chainsafe/bls-hd-key
Advanced tools
Changelog
Readme
Utility functions for managing BLS heirarchical deterministic accounts.
Implementation is following EIPS: EIP-2334, EIP-2333
For a higher-level interface, see @chainsafe/bls-keygen.
import {deriveMasterSK, deriveChildSK, deriveChildSKMultiple, pathToIndices} from "@chainsafe/bls-hd-key";
// Create master private key (according to EIP-2333)
const entropy: Uint8Array = Uint8Array.from(...);
const masterKey: Uint8Array = deriveMasterSK(entropy);
// Create child private key one level deep
const childIndex: number = ...;
const childKey: Uint8Array = deriveChildSK(masterKey, childIndex);
// Convert a "path" into an array of indices (using validation rules of EIP-2334)
cont path = "m/12381/3600/0/0";
const childIndices: number[] = pathToIndices(path);
// Convert a "path" into an array of indices (validating an alternate key type)
const eth1KeyType = 60;
cont path = "m/12381/60/0/0";
const childIndices: number[] = pathToIndices(path, eth1KeyType);
// Create a child private key `childIndices.length` levels deep
const childIndices: number[] = [...];
const childKey = deriveChildSKMultiple(masterKey, childIndices);
// Compose functions to derive a child key from entropy and a path
const entropy: Uint8Array = Uint8Array.from(...);
cont path = "m/12381/3600/0/0";
const childKey = deriveChildSKMultiple(deriveMasterSK(entropy), pathToIndices(path));
Requirements:
yarn install
yarn run test
This repo was audited by Least Authority as part of this security audit, released 2020-03-23. Commit 767c998
verified in the report.
Apache-2.0
FAQs
BLS KDF and HD wallet utilities
The npm package @chainsafe/bls-hd-key receives a total of 2,579 weekly downloads. As such, @chainsafe/bls-hd-key popularity was classified as popular.
We found that @chainsafe/bls-hd-key demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.