@solana/assertions
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-experimental.7d79aca • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @solana/assertions

Weekly Downloads

10,117

Version

2.0.0-experimental.7d79aca

License

MIT

Unpacked Size

51.6 kB

Total Files

21

Last publish

Collaborators

  • mcintyre94
  • 2501babe
  • lorisleiva
  • buffalojoec
  • ngundotra
  • _chido
  • steveluscher
  • sebastianbor
  • seanyoung
  • mvines
  • tyera
  • joncinque
  • ryoqun
  • trent-solana
  • jordansexton