serialize method

Uint8List serialize()

Serializes this envelope back into the LRTC byte layout.

Implementation

Uint8List serialize() {
  final out = Uint8List(header.length + sealed.length);
  out.setAll(0, header);
  out.setAll(header.length, sealed);
  return out;
}