2.1.1 • Published 1 month ago

@solana/webcrypto-ed25519-polyfill v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

npm npm-downloads semantic-release code-style-prettier

@solana/webcrypto-ed25519-polyfill

This package contains a polyfill that enables Ed25519 key manipulation in environments where it is not yet implemented. It does so by proxying calls to SubtleCrypto instance methods to an Ed25519 implementation in userspace.

Security warning

Because this package's implementation of Ed25519 key generation exists in userspace, it can't guarantee that the keys you generate with it are non-exportable. Untrusted code running in your JavaScript context may still be able to gain access to and/or exfiltrate secret key material.

Usage

Environments that support Ed25519 (see https://github.com/WICG/webcrypto-secure-curves/issues/20) do not require this polyfill.

For all others, simply import this polyfill before use.

// Importing this will shim methods on `SubtleCrypto`, adding Ed25519 support.
import '@solana/webcrypto-ed25519-polyfill';

// Now you can do this, in environments that do not otherwise support Ed25519.
const keyPair = await crypto.subtle.generateKey('Ed25519', false, ['sign']);
2.1.1

2 months ago

2.1.0

4 months ago

2.0.0-rc.4

8 months ago

2.0.0

8 months ago

2.0.0-rc.2

8 months ago

2.0.0-rc.3

8 months ago

2.0.0-preview.4

1 year ago

2.0.0-rc.0

12 months ago

2.0.0-rc.1

11 months ago

2.0.0-preview.3

1 year ago

2.0.0-preview.2

1 year ago

2.0.0-preview.1

1 year ago