bytes property

Uint8List bytes

Implementation

Uint8List get bytes {
  var buf = Buffer();
  buf.addUint8(algorithm.value);
  if (algorithm == SignatureSchema.sm2Sm3) {
    buf.appendBytes(Constant.defaultSm2Id);
    buf.addUint8(0);
  }
  buf.appendBytes(r);
  buf.appendBytes(s);
  return buf.bytes;
}