
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@ddatabase/crypto
Advanced tools
The crypto primitives used in ddatabase, extracted into a separate module
npm install @ddatabase/crypto
const crypto = require('@ddatabase/crypto')
const keyPair = crypto.keyPair()
console.log(keyPair) // prints a ed25519 keypair
keyPair = crypto.keyPair()Returns an ED25519 keypair that can used for tree signing.
signature = crypto.sign(message, secretKey)Signs a message (buffer).
verified = crypto.verify(message, signature, publicKey)Verifies a signature for a message.
hash = crypto.data(data)Hashes a leaf node in a merkle tree.
hash = crypto.parent(left, right)Hash a parent node in a merkle tree. left and right should look like this:
{
index: treeIndex,
hash: hashOfThisNode,
size: byteSizeOfThisTree
}
hash = crypto.tree(peaks)Hashes the merkle root of the tree. peaks should be an array of the peaks of the tree and should look like above.
dataToSign = crypto.signable(peaksOrHash, length)Encodes a buffer to sign. length should be how many leaf nodes exist in the tree.
buffer = crypto.randomBytes(size)Returns a buffer containing random bytes of size size.
hash = crypto.discoveryKey(publicKey)Return a hash derived from a publicKey that can used for discovery
without disclosing the public key.
MIT
FAQs
Crypto library for dDatabase.
The npm package @ddatabase/crypto receives a total of 9 weekly downloads. As such, @ddatabase/crypto popularity was classified as not popular.
We found that @ddatabase/crypto 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.