@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.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
- * Keypair signer interface
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
- interface Signer {
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
  /**