This repository was archived by the owner on Jan 22, 2025. It is now read-only.
The secretKey
property on the Keypair
class from @solana/web3.js behaves differently since 1.54.1
#27684
Labels
community
Community contribution
Problem
While updating my
@solana/web3.js
deps, I found a difference between v1.54.0 and 1.54.1, probably introduced here.To test this, we can use the following snippet from the Solana Cookbook:
Using
@solana/web3.js@1.54.0
and before, the output looks like this, exposing thesecretKey
property as aUint8Array
:Using
@solana/web3.js@1.54.1
and higher, the output looks like this, exposing thesecretKey
as some binary string:Proposed Solution
Make sure the
Keypair
class returns aUint8Array
as suggested by its type.The text was updated successfully, but these errors were encountered: