toBytesWithReduceScalar method

BuBytes toBytesWithReduceScalar(
  1. List<int> label,
  2. int outLen
)

Generates pseudo-random bytes and reduces them using scalar reduction.

Parameters:

  • label: A list of integers representing the label for the pseudo-random data.
  • outLen: The length of the pseudo-random data to generate, specified as an integer. The output (little-endian) is reduced with Ed25519 scReduce — Ed25519 scalars only.

Implementation

BuBytes toBytesWithReduceScalar(List<int> label, int outLen) {
  return blockchainUtils.api.ed25519.scReduce(toBytes(label, outLen));
}