txsMsg method

Uint8List txsMsg(
  1. int v,
  2. BigInt r,
  3. BigInt s
)

Implementation

Uint8List txsMsg(int v, BigInt r, BigInt s) {
  if (v == 0 || v == 1) {
    data.v = v;
  } else if (v == 27 || v == 28) {
    data.v = v - 27;
  } else {
    data.v = v;
  }
  data.r = r;
  data.s = s;

  return serialize();
}