@ethereumjs/util / setLengthLeft
setLengthLeft(
msg,length,opts):Uint8Array
Defined in: packages/util/src/bytes.ts:170
Left Pads a Uint8Array with leading zeros till it has length bytes.
Throws if input length exceeds target length, unless allowTruncate option is true.
Uint8Array
the value to pad
number
the number of bytes the output should be
SetLengthOpts = {}
options object with allowTruncate flag
Uint8Array