
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@agentcommercekit/keys
Advanced tools
Methods for dealing with cryptographic keys on multiple curves (secp256k1, Ed25519).
Methods for dealing with cryptographic keys on multiple curves (secp256k1, Ed25519).
This package is part of the Agent Commerce Kit.
npm i @agentcommercekit/keys
# or
pnpm add @agentcommercekit/keys
import {
generateKeypair,
keypairToJwk,
encodePublicKeyFromKeypair
} from "@agentcommercekit/keys"
// Generate and format keypairs
const keypair = await generateKeypair("secp256k1")
const jwkKeypair = keypairToJwk(keypair)
// Format public keys
const hexPublicKey = encodePublicKeyFromKeypair("hex", keypair)
const jwkPublicKey = encodePublicKeyFromKeypair("jwk", keypair)
const multibasePublicKey = encodePublicKeyFromKeypair("multibase", keypair)
const base58PublicKey = encodePublicKeyFromKeypair("base58", keypair)
generateKeypair(curve: KeyCurve, privateKeyBytes?: Uint8Array): Promise<Keypair>
keypairToJwk(keypair: Keypair): PrivateKeyJwk
jwkToKeypair(jwk: PrivateKeyJwk): Keypair
encodePublicKeyFromKeypair<T extends PublicKeyEncoding>(encoding: T, keypair: Keypair): PublicKeyTypeMap[T]
Encoding utilities are also available via subpath exports:
import { bytesToBase58, base58ToBytes } from "@agentcommercekit/keys/encoding"
Copyright (c) 2025 Catena Labs, Inc.
FAQs
Methods for dealing with cryptographic keys on multiple curves (secp256k1, Ed25519).
The npm package @agentcommercekit/keys receives a total of 49 weekly downloads. As such, @agentcommercekit/keys popularity was classified as not popular.
We found that @agentcommercekit/keys demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.