Closed roccomuso closed 5 years ago
https://github.com/ebceu4/waves-crypto/blob/master/src/index.ts#L187
case 'Uint8Array': const arr = new Uint8Array(count) for (let i = 0; i < count; ++i) { arr[i] = buf.readUInt8(i) } return arr
why can't simply put:
case 'Uint8Array': return Uint8Array.from(buf)
Feel free to submit PR to https://github.com/wavesplatform/waves-crypto/
https://github.com/ebceu4/waves-crypto/blob/master/src/index.ts#L187
why can't simply put: