Open MicahZoltu opened 5 years ago
Hey @MicahZoltu I encountered the very same problem myself and needed the library to work in browser+node and work with signed bigint as well (unfortunately bigint-buffer here does not handle the sign).
So i created @vekexasia/bigint-uint8array which is part to my bigger bigint-swissknife monorepo. I guess now it's too late for you but i'm posting it here in case someone else finds this issue in the future.
Buffer
is node only, whileUint8Array
is part of ES spec and available on browser and Node. Because of this, I useUint8Array
everywhere rather thanBuffer
. It would be nice if a library similar to this one existed that supportedUint8Array
rather thanBuffer
.