@solana/webcrypto-ed25519-polyfill 2.0.0-experimental.eeb355e → 2.0.0-experimental.ef09aec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.cjs +441 -21
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +20 -20
- package/dist/index.browser.js.map +1 -1
- package/dist/index.development.js +413 -1395
- package/dist/index.development.js.map +1 -1
- package/dist/index.native.js +20 -20
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +441 -21
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +20 -20
- package/dist/index.node.js.map +1 -1
- package/dist/index.production.min.js +3 -18
- package/dist/types/secrets.d.ts +4 -4
- package/package.json +4 -4
package/dist/types/secrets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function exportKeyPolyfill(format: 'jwk', key: CryptoKey): JsonWebKey
|
|
2
|
-
export declare function exportKeyPolyfill(format: KeyFormat, key: CryptoKey): ArrayBuffer
|
|
1
|
+
export declare function exportKeyPolyfill(format: 'jwk', key: CryptoKey): Promise<JsonWebKey>;
|
|
2
|
+
export declare function exportKeyPolyfill(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer>;
|
|
3
3
|
/**
|
|
4
4
|
* This function generates a key pair and stores the secret bytes associated with it in a
|
|
5
5
|
* module-private cache. Instead of vending the actual secret bytes, it returns a `CryptoKeyPair`
|
|
@@ -8,7 +8,7 @@ export declare function exportKeyPolyfill(format: KeyFormat, key: CryptoKey): Ar
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function generateKeyPolyfill(extractable: boolean, keyUsages: readonly KeyUsage[]): CryptoKeyPair;
|
|
10
10
|
export declare function isPolyfilledKey(key: CryptoKey): boolean;
|
|
11
|
-
export declare function signPolyfill(key: CryptoKey, data: BufferSource): ArrayBuffer
|
|
12
|
-
export declare function verifyPolyfill(key: CryptoKey, signature: BufferSource, data: BufferSource): boolean
|
|
11
|
+
export declare function signPolyfill(key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
12
|
+
export declare function verifyPolyfill(key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
|
|
13
13
|
export declare function importKeyPolyfill(format: KeyFormat, keyData: BufferSource, extractable: boolean, keyUsages: readonly KeyUsage[]): CryptoKey;
|
|
14
14
|
//# sourceMappingURL=secrets.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/webcrypto-ed25519-polyfill",
|
|
3
|
-
"version": "2.0.0-experimental.
|
|
3
|
+
"version": "2.0.0-experimental.ef09aec",
|
|
4
4
|
"description": "A polyfill that adds Ed25519 key manipulation capabilities to `SubtleCrypto` in environments where it is not yet supported",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"node": ">=17.4"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@noble/
|
|
52
|
+
"@noble/ed25519": "^2.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@solana/eslint-config-solana": "^1.0.2",
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"jest-runner-eslint": "^2.1.2",
|
|
66
66
|
"jest-runner-prettier": "^1.0.0",
|
|
67
67
|
"prettier": "^2.8",
|
|
68
|
-
"tsup": "
|
|
68
|
+
"tsup": "^8.0.1",
|
|
69
69
|
"typescript": "^5.2.2",
|
|
70
70
|
"version-from-git": "^1.1.1",
|
|
71
|
-
"test-config": "0.0.0",
|
|
72
71
|
"build-scripts": "0.0.0",
|
|
72
|
+
"test-config": "0.0.0",
|
|
73
73
|
"tsconfig": "0.0.0"
|
|
74
74
|
},
|
|
75
75
|
"bundlewatch": {
|