List<int> toBytes(int baselen) { final sBytes = BigintUtils.toBytes(s, length: baselen); final rBytes = BigintUtils.toBytes(r, length: baselen); return [...rBytes, ...sBytes]; }