New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@code-wallet/keys

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-wallet/keys

[![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url]

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

npm npm-downloads

@code-wallet/keys

Manage ED25519 cryptographic keys, including public keys and key pairs, crucial for the security and verification mechanisms of the platform. This package is part of the Code SDK, a collection of packages that provide a comprehensive set of tools for developers to integrate Code into their websites and applications.

If you're looking for key phrases, check out the @code-wallet/mnemonic package.

Learn more about Code at https://getcode.com. See the docs for more information.

Quick Start

npm install @code-wallet/keys

Examples

Generating a Keypair

import { Keypair } from '@code-wallet/keys';

const keypair = Keypair.generate();
console.log("Public value:", keypair.getPublicValue());
console.log("Private value:", keypair.getPrivateValue());
// console.log("Signature:", keypair.sign(...));

const pubkey = keypair.getPublicKey();
console.log("Public key:", pubkey.toBase58());

const address = PublicKey.fromBase58("kinXdEcpDQeHPEuQnqmUgtYykqKGVFq6CeVX5iAHJq6");
// console.log("Address:", address.verify(...));

Getting Started

As an internal package, @code-wallet/keys is tailored for developers within the Code team. For detailed information on each module and its functionalities, please refer to the documentation.

Need Help?

If you have any questions or need help integrating Code into your website or application, please reach out to us on Discord or Twitter.

FAQs

Package last updated on 10 Apr 2024

Did you know?

Socket

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.

Install

Related posts