Socket
Socket
Sign inDemoInstall

@solana/assertions

Package Overview
Dependencies
0
Maintainers
13
Versions
714
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @solana/assertions

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


Version published
Weekly downloads
8K
increased by29.77%
Maintainers
13
Created
Weekly downloads
 

Readme

Source

npm npm-downloads semantic-release
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

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.

Keywords

FAQs

Last updated on 29 Jul 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc