Converts a number to a BN.js object, throw if invalid number.
Just the encoding and decoding from the ethers-wallet module.
No projects in this organization have any dependencies