SpendDescription constructor

SpendDescription({
  1. List<int>? valueCommitment,
  2. List<int>? anchor,
  3. List<int>? nullifier,
  4. List<int>? rk,
  5. List<int>? zkproof,
  6. List<int>? spendAuthoritySignature,
})

Create a new SpendDescription instance with specified parameters.

Implementation

SpendDescription(
    {List<int>? valueCommitment,
    List<int>? anchor,
    List<int>? nullifier,
    List<int>? rk,
    List<int>? zkproof,
    List<int>? spendAuthoritySignature})
    : valueCommitment =
          BytesUtils.tryToBytes(valueCommitment, unmodifiable: true),
      anchor = BytesUtils.tryToBytes(anchor, unmodifiable: true),
      nullifier = BytesUtils.tryToBytes(nullifier, unmodifiable: true),
      rk = BytesUtils.tryToBytes(rk, unmodifiable: true),
      spendAuthoritySignature =
          BytesUtils.tryToBytes(spendAuthoritySignature, unmodifiable: true),
      zkproof = BytesUtils.tryToBytes(zkproof, unmodifiable: true);