ReceiveDescription constructor

ReceiveDescription({
  1. List<int>? valueCommitment,
  2. List<int>? noteCommitment,
  3. List<int>? epk,
  4. List<int>? cEnc,
  5. List<int>? cOut,
  6. List<int>? zkproof,
})

Create a new ReceiveDescription instance with specified parameters.

Implementation

ReceiveDescription(
    {List<int>? valueCommitment,
    List<int>? noteCommitment,
    List<int>? epk,
    List<int>? cEnc,
    List<int>? cOut,
    List<int>? zkproof})
    : valueCommitment =
          BytesUtils.tryToBytes(valueCommitment, unmodifiable: true),
      noteCommitment =
          BytesUtils.tryToBytes(noteCommitment, unmodifiable: true),
      epk = BytesUtils.tryToBytes(epk, unmodifiable: true),
      cEnc = BytesUtils.tryToBytes(cEnc, unmodifiable: true),
      cOut = BytesUtils.tryToBytes(cOut, unmodifiable: true),
      zkproof = BytesUtils.tryToBytes(zkproof, unmodifiable: true);