@solana/web3.js 1.54.0 → 1.54.1
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/lib/index.browser.cjs.js +117 -1798
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +117 -1798
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +117 -1819
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +15 -6
- package/lib/index.esm.js +117 -1819
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +19245 -26059
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +8 -5
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +117 -1798
- package/lib/index.native.js.map +1 -1
- package/package.json +5 -6
- package/src/account.ts +18 -9
- package/src/keypair.ts +19 -24
- package/src/programs/ed25519.ts +2 -2
- package/src/programs/secp256k1.ts +6 -5
- package/src/publickey.ts +7 -71
- package/src/transaction/legacy.ts +3 -5
- package/src/transaction/versioned.ts +2 -5
- package/src/utils/ed25519.ts +46 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/secp256k1.ts +18 -0
package/lib/index.d.ts
CHANGED
|
@@ -141,7 +141,9 @@ declare module '@solana/web3.js' {
|
|
|
141
141
|
*/
|
|
142
142
|
get publicKey(): PublicKey;
|
|
143
143
|
/**
|
|
144
|
-
* The **unencrypted** secret key for this account
|
|
144
|
+
* The **unencrypted** secret key for this account. The first 32 bytes
|
|
145
|
+
* is the private scalar and the last 32 bytes is the public key.
|
|
146
|
+
* Read more: https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/
|
|
145
147
|
*/
|
|
146
148
|
get secretKey(): Buffer;
|
|
147
149
|
}
|
|
@@ -218,17 +220,24 @@ declare module '@solana/web3.js' {
|
|
|
218
220
|
}
|
|
219
221
|
|
|
220
222
|
/**
|
|
221
|
-
*
|
|
223
|
+
* A 64 byte secret key, the first 32 bytes of which is the
|
|
224
|
+
* private scalar and the last 32 bytes is the public key.
|
|
225
|
+
* Read more: https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/
|
|
222
226
|
*/
|
|
223
|
-
|
|
224
|
-
publicKey: PublicKey;
|
|
225
|
-
secretKey: Uint8Array;
|
|
226
|
-
}
|
|
227
|
+
export type Ed25519SecretKey = Uint8Array;
|
|
227
228
|
/**
|
|
228
229
|
* Ed25519 Keypair
|
|
229
230
|
*/
|
|
230
231
|
interface Ed25519Keypair {
|
|
231
232
|
publicKey: Uint8Array;
|
|
233
|
+
secretKey: Ed25519SecretKey;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Keypair signer interface
|
|
238
|
+
*/
|
|
239
|
+
interface Signer {
|
|
240
|
+
publicKey: PublicKey;
|
|
232
241
|
secretKey: Uint8Array;
|
|
233
242
|
}
|
|
234
243
|
/**
|