CommercioDoc constructor
CommercioDoc({
- required String senderDid,
- required List<
String> recipientDids, - required String uuid,
- required CommercioDocMetadata metadata,
- String? contentUri,
- CommercioDocChecksum? checksum,
- CommercioDocEncryptionData? encryptionData,
- CommercioDoSign? doSign,
Implementation
CommercioDoc({
required this.senderDid,
required this.recipientDids,
required this.uuid,
required this.metadata,
this.contentUri,
this.checksum,
this.encryptionData,
this.doSign,
}) : assert(matchBech32Format(senderDid)),
assert(recipientDids.isNotEmpty &&
recipientDids.every((e) => matchBech32Format(e))),
assert(matchUuidv4(uuid)),
assert(contentUri == null || checkStringBytesLen(contentUri, 512)),
assert(_checksumMustBePresentIfDoSign(checksum, doSign));