xchainjs-lib icon indicating copy to clipboard operation
xchainjs-lib copied to clipboard

completing the noble cryptography migration

Open dynst opened this issue 6 months ago • 1 comments

  • [x] The EVM chains migrated with the update to ethers v6 and most packages dropped bip32 in #1424
  • [ ] #1469
  • [x] replace bech32 with @scure/base
  • [x] xchain-radix currently depends on bip32 and ed25519-hd-key instead of @scure/bip32 and micro-key-producer.
  • [ ] crypto-js, bip39, and the custom fixed-up fork of foundry-primitives are replaceable

Radix won't be so easy to migrate, its package is dubiously maintained (zero commits for months now). @radixdlt/radix-engine-toolkit still uses secp256k1 and elliptic, and outdated versions of them at that. https://github.com/radixdlt/typescript-radix-engine-toolkit/issues/21

└─ @radixdlt/radix-engine-toolkit@npm:1.0.4
   └─ secp256k1@npm:5.0.0 (via npm:5.0.0)

bitcore-lib-cash and @dashevo/dashcore-lib are both forks of the same ancient codebase and inherited the same bespoke (and unaudited?) JavaScript ECDSA implementation.

Updating CosmJS has to wait on the severely underfunded Confio having the man-hours to finish https://github.com/cosmos/cosmjs/pull/1348

dynst avatar Jun 30 '25 02:06 dynst