Proof constructor

Proof({
  1. Int64? total,
  2. Int64? index,
  3. List<int>? leafHash,
  4. Iterable<List<int>>? aunts,
})

Implementation

factory Proof({
  $fixnum.Int64? total,
  $fixnum.Int64? index,
  $core.List<$core.int>? leafHash,
  $core.Iterable<$core.List<$core.int>>? aunts,
}) {
  final _result = create();
  if (total != null) {
    _result.total = total;
  }
  if (index != null) {
    _result.index = index;
  }
  if (leafHash != null) {
    _result.leafHash = leafHash;
  }
  if (aunts != null) {
    _result.aunts.addAll(aunts);
  }
  return _result;
}