Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@dfinity/identity

Package Overview
Dependencies
Maintainers
11
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfinity/identity

JavaScript and TypeScript library to manage identity with the Internet Computer

latest
Source
npmnpm
Version
3.2.7
Version published
Weekly downloads
76K
-0.53%
Maintainers
11
Weekly downloads
 
Created
Source

@icp-sdk/core/identity

JavaScript and TypeScript module to manage Identities and enable simple Web Authentication flows for applications on the Internet Computer

Usage

import { ECDSAKeyIdentity, Ed25519KeyIdentity, WebAuthnIdentity } from '@icp-sdk/core/identity';

const ecdsaIdentity = await ECDSAKeyIdentity.generate();
const ed25519Identity = Ed25519KeyIdentity.generate();
const webAuthnIdentity = await WebAuthnIdentity.create();

DelegationIdentity

The DelegationIdentity is typically generated using the @dfinity/auth-client package.

PartialIdentity

The PartialIdentity is not typically used directly, but is used by the DelegationIdentity and WebAuthnIdentity classes.

Secp256k1KeyIdentity

See @icp-sdk/core/identity/secp256k1 for more information.

In Node.js

Depending on your version, you may need to use a polyfill and set global.crypto in a setup file. If you prefer, you can also pass in a subtleCrypto implementation in methods that call for it, either as a direct argument, or in a cryptoOptions object.

API Reference

Additional API Documentation can be found here.

Keywords

internet computer

FAQs

Package last updated on 30 Sep 2025

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