
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@dfinity/identity
Advanced tools
JavaScript and TypeScript library to manage identity with the Internet Computer
JavaScript and TypeScript module to manage Identities and enable simple Web Authentication flows for applications on the Internet Computer
import { ECDSAKeyIdentity, Ed25519KeyIdentity, WebAuthnIdentity } from '@icp-sdk/core/identity';
const ecdsaIdentity = await ECDSAKeyIdentity.generate();
const ed25519Identity = Ed25519KeyIdentity.generate();
const webAuthnIdentity = await WebAuthnIdentity.create();
The DelegationIdentity
is typically generated using the @dfinity/auth-client package.
The PartialIdentity
is not typically used directly, but is used by the DelegationIdentity
and WebAuthnIdentity
classes.
See @icp-sdk/core/identity/secp256k1 for more information.
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.
Additional API Documentation can be found here.
FAQs
JavaScript and TypeScript library to manage identity with the Internet Computer
The npm package @dfinity/identity receives a total of 64,887 weekly downloads. As such, @dfinity/identity popularity was classified as popular.
We found that @dfinity/identity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.