CommitmentProof constructor

CommitmentProof({
  1. ExistenceProof? exist,
  2. NonExistenceProof? nonexist,
  3. BatchProof? batch,
  4. CompressedBatchProof? compressed,
})

Implementation

factory CommitmentProof({
  ExistenceProof? exist,
  NonExistenceProof? nonexist,
  BatchProof? batch,
  CompressedBatchProof? compressed,
}) {
  final _result = create();
  if (exist != null) {
    _result.exist = exist;
  }
  if (nonexist != null) {
    _result.nonexist = nonexist;
  }
  if (batch != null) {
    _result.batch = batch;
  }
  if (compressed != null) {
    _result.compressed = compressed;
  }
  return _result;
}