Converts a byte array to a Num (bigint) assuming big-endian order.
The byte array to convert.
A Num (bigint) representing the numeric value.
const num = numBeFromBytes(new Uint8Array([0, 0, 48, 57])); // Outputs 12345n Copy
const num = numBeFromBytes(new Uint8Array([0, 0, 48, 57])); // Outputs 12345n
Converts a byte array to a Num (bigint) assuming big-endian order.