Correct the type of the polyfilled exportKey and sign methods#806
Conversation
🦋 Changeset detectedLatest commit: 7e29bd6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
BundleMonFiles updated (3)
Unchanged files (127)
Total files change +97B +0.03% Final result: ✅ View report in BundleMon website ➡️ |
7fd15a9 to
43f571d
Compare
|
I deemed this not a breaking change, since the API was already typed |
| const result = new Uint8Array(ED25519_PKCS8_HEADER.length + secretKeyBytes.length); | ||
| result.set(ED25519_PKCS8_HEADER, 0); | ||
| result.set(secretKeyBytes, ED25519_PKCS8_HEADER.length); |
There was a problem hiding this comment.
More efficient way of building this that doesn't involve constructing two arrays.
43f571d to
e43f311
Compare
75753c2 to
430391b
Compare
6091483 to
e43f311
Compare
|
Documentation Preview: https://kit-docs-ipt84ql0a-anza-tech.vercel.app |
Merge activity
|
e43f311 to
7e29bd6
Compare
|
🔎💬 Inkeep AI search and chat service is syncing content for source 'Solana Kit Docs' |
|
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |

Problem
The return type of
exportKeyandsignisArrayBufferbut we're returningUint8Array. This wasn't caught until an upgrade to TypeScript 5.9 where this became a type error.Summary of Changes
Return
ArrayBufferinstead.