New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@solana/assertions

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
k

@solana/assertions

Helpers for asserting that a JavaScript environment supports certain features necessary for the operation of the Solana JavaScript SDK

2.1.1-canary-20250313194127
Version published
Weekly downloads
123K
29.26%
Maintainers
1
Weekly downloads
 
Created
Issues
43

npm npm-downloads
code-style-prettier

@solana/assertions

This package contains utilities for asserting that a JavaScript environment supports certain features necessary for the operation of the Solana JavaScript SDK.

Functions

assertDigestCapabilityIsAvailable()

Throws an exception unless crypto.subtle.digest() is available in the current JavaScript environment.

assertKeyExporterIsAvailable()

Throws an exception unless crypto.subtle.exportKey() is available in the current JavaScript environment.

assertKeyGenerationIsAvailable()

Throws an exception unless crypto.subtle.generateKey() is available in the current JavaScript environment and has support for the Ed25519 curve.

assertSigningCapabilityIsAvailable()

Throws an exception unless crypto.subtle.sign() is available in the current JavaScript environment.

assertVerificationCapabilityIsAvailable()

Throws an exception unless crypto.subtle.sign() is available in the current JavaScript environment.

FAQs

Package last updated on 13 Mar 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