@solana/web3.js 2.0.0-preview.3.20240702085436.d04a6be624c9f825d3a0e7c884c47d52662e0a15 → 2.0.0-preview.3.20240702171519.8eab5cf6c603c6a523ea14270d16f0f1deb01b7d
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/dist/index.development.js +2 -2
- package/dist/index.development.js.map +1 -1
- package/dist/index.production.min.js +51 -51
- package/package.json +18 -18
package/README.md
CHANGED
@@ -781,9 +781,10 @@ This polyfill can be found at `@solana/webcrypto-ed25519-polyfill` and mimics th
|
|
781
781
|
Determine if your target runtime supports Ed25519, and install the polyfill if it does not:
|
782
782
|
|
783
783
|
```ts
|
784
|
-
import '@solana/webcrypto-ed25519-polyfill';
|
784
|
+
import install from '@solana/webcrypto-ed25519-polyfill';
|
785
785
|
import { generateKeyPair, signBytes, verifySignature } from '@solana/web3.js';
|
786
786
|
|
787
|
+
install();
|
787
788
|
const keyPair: CryptoKeyPair = await generateKeyPair();
|
788
789
|
|
789
790
|
/* Remaining logic */
|
@@ -386,7 +386,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
386
386
|
[SOLANA_ERROR__SIGNER__WALLET_MULTISIGN_UNIMPLEMENTED]: "Wallet account signers do not support signing multiple messages/transactions in a single operation",
|
387
387
|
[SOLANA_ERROR__SUBTLE_CRYPTO__DIGEST_UNIMPLEMENTED]: "No digest implementation could be found.",
|
388
388
|
[SOLANA_ERROR__SUBTLE_CRYPTO__DISALLOWED_IN_INSECURE_CONTEXT]: "Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",
|
389
|
-
[SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED]: "This runtime does not support the generation of Ed25519 key pairs.\n\nInstall
|
389
|
+
[SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED]: "This runtime does not support the generation of Ed25519 key pairs.\n\nInstall @solana/webcrypto-ed25519-polyfill and call its `install` function before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.",
|
390
390
|
[SOLANA_ERROR__SUBTLE_CRYPTO__EXPORT_FUNCTION_UNIMPLEMENTED]: "No signature verification implementation could be found.",
|
391
391
|
[SOLANA_ERROR__SUBTLE_CRYPTO__GENERATE_FUNCTION_UNIMPLEMENTED]: "No key generation implementation could be found.",
|
392
392
|
[SOLANA_ERROR__SUBTLE_CRYPTO__SIGN_FUNCTION_UNIMPLEMENTED]: "No signing implementation could be found.",
|
@@ -3949,7 +3949,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
3949
3949
|
...config.headers ? normalizeHeaders2(config.headers) : void 0,
|
3950
3950
|
...{
|
3951
3951
|
// Keep these headers lowercase so they will override any user-supplied headers above.
|
3952
|
-
"solana-client": (_a = `js/${"2.0.0-preview.3.
|
3952
|
+
"solana-client": (_a = `js/${"2.0.0-preview.3.20240702171519.8eab5cf6c603c6a523ea14270d16f0f1deb01b7d"}`) != null ? _a : "UNKNOWN"
|
3953
3953
|
}
|
3954
3954
|
}
|
3955
3955
|
}),
|