Closed stanleyjones closed 1 year ago
This PR removes the need for browser polyfills in web apps that import the ManyJS library.
Specifically:
makeRandomBytes
crypto
Buffer
Uint8Array
Buffer.compare
Buffer.from
Buffer.toString
CborData
This PR removes the need for browser polyfills in web apps that import the ManyJS library.
Specifically:
makeRandomBytes
is somewhat intelligent and only imports Node'scrypto
library if it's not found in the browserBuffer
class have been replaced with the universalUint8Array
Buffer.compare
,Buffer.from
,Buffer.toString
(along with tests!)CborData
instead of buffers