Evidence.apply constructor

Evidence.apply(
  1. EvidenceTypePrefix prefix,
  2. Digest content
)

Implementation

factory Evidence.apply(EvidenceTypePrefix prefix, Digest content) {
  assert(content.bytes.length == contentLength,
      'Invalid evidence: incorrect EvidenceContent length');
  return Evidence(prefix, content);
}