signature property
Digital signature of the encrypted data field.
Generated by signing the data (encrypted content) with the sender's private key (asymmetric signing). This signature verifies the message's authenticity (sender is who they claim to be) and integrity (message hasn't been tampered with). Wrapped in TransportableData for standardized encoding/transmission. Cannot be null (core security feature of reliable messages).
Implementation
@override
TransportableData get signature {
TransportableData? ted = _signature;
if (ted == null) {
Object? base64 = this['signature'];
assert(base64 != null, 'message signature cannot be empty: $this');
ted = TransportableData.parse(base64);
assert(ted != null, 'failed to decode message signature: $base64');
_signature = ted;
}
return ted!;
}