Closed nathandem closed 1 year ago
Alternatively, are you guys aware of another reliable/maintained borsh js client with a nice API?
Oh I can answer this - new web3.js uses @metaplex-foundation/umi-serializers
which is byte for byte compatible with borsh by default (the author @lorisleiva just confirmed it).
@jamesrp13 we can close this, we'll update the course anyway for the new web3.js
First off, thank you this great learning resource. It helped me get into Solana more than any other!
My question: should @project-serum/borsh still be used as the default JS borsh library in the course?
I recon that the API of this library is much better (shorter and cleaner) than that of borsh - see example below.
The original Serum organization is dead at this point. The source code of the package is not publicly available. We can't expect any updates to happen in the future (e.g. to swap BN.js for the native
bigint
) or worse the clear list of accountable maintainer means that an exploit could more easily sneak in. So wouldn't it wiser to now suggest people to use Near's borsh npm package instead?Alternatively, are you guys aware of another reliable/maintained borsh js client with a nice API?
For ref, the comparison of
borsh
vs@project-serum/borsh
: