signDeviceInfo method

Uint8List signDeviceInfo(
  1. String deviceInfo
)

Implementation

Uint8List signDeviceInfo(String deviceInfo) {
  var signature = authenticationManager!.signingManager
      .signMessage(BytesUtils.stringToBytesArray(deviceInfo));

  BytesBuilder bb = BytesBuilder();
  bb.add(BytesUtils.stringToBytesArray(deviceInfo));
  bb.add(signature!.data);

  return bb.toBytes();
}