
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@left-curve/crypto
Advanced tools
Cryptographic primitives for the [Dango](https://dango.exchange) ecosystem.
Cryptographic primitives for the Dango ecosystem.
npm install @left-curve/crypto
import { sha256, Secp256k1, Ed25519 } from "@left-curve/crypto";
const hash = sha256(new Uint8Array([1, 2, 3]));
const keypair = Secp256k1.fromMnemonic("your mnemonic ...");
const pubkey = keypair.publicKey();
sha256(data) / Sha256 - SHA-256sha512(data) / Sha512 - SHA-512keccak256(data) / Keccak256 - Keccak-256ripemd160(data) / Ripemd160 - RIPEMD-160Secp256k1 - secp256k1 elliptic curve key pair
Secp256k1.fromMnemonic(mnemonic) - derive from BIP-39 mnemonicSecp256k1.fromPrivateKey(key) - from raw private key.publicKey(), .sign(data), .verify(data, signature)Ed25519 - Ed25519 key pair
.publicKey(), .sign(data), .verify(data, signature)secp256k1RecoverPubKey(hash, signature, recoveryId) - recover public keysecp256k1CompressPubKey(pubkey) - compress public keysecp256k1VerifySignature(pubkey, hash, signature) - verify signatureed25519VerifySignature(pubkey, hash, signature) - verify signatureethHashMessage(message) - EIP-191 message hashingcreateWebAuthnCredential(options) - create passkey credentialsignWithWebAuthn(credential, challenge) - sign with passkeyverifyWebAuthn(credential, signature) - verify passkey signatureBuilt on audited libraries:
@noble/curves - elliptic curves@noble/hashes - hash functions@scure/bip32 - HD key derivation@scure/bip39 - mnemonic generationTBD
FAQs
Cryptographic primitives for the [Dango](https://dango.exchange) ecosystem.
We found that @left-curve/crypto demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.