Though unintuitive, this PR actually makes the input type of Wallet Standard methods less restrictive. They will now take not only Uint8Arrays, but things shaped like Uint8Arrays that behave more read-only like.
The motivation here is to make Wallet Standard more compatible with libraries like @solana/web3.js that deal in ReadonlyUint8Array.
Though unintuitive, this PR actually makes the input type of Wallet Standard methods less restrictive. They will now take not only
Uint8Arrays
, but things shaped likeUint8Arrays
that behave more read-only like.The motivation here is to make Wallet Standard more compatible with libraries like
@solana/web3.js
that deal inReadonlyUint8Array
.