marshal method

  1. @override
Uint8List marshal()
override

Returns the protobuf bytes of the key

Implementation

@override
Uint8List marshal() {
  final pbKey = pb.PrivateKey(
    type: type,
    data: raw,
  );
  return pbKey.writeToBuffer();
}