signForClain method

String signForClain()

Implementation

String signForClain() {
  Uint8List prefix = hexToBytes("434C4D00");
  final channelx = Hash256.fromValue(channel);
  final amountx = UInt64.fromValue(amount!.toInt());
  return bytesToHex(
      Uint8List.fromList([...prefix, ...channelx.buffer, ...amountx.buffer]));
}