toCbor method

CborObject toCbor()

Implementation

CborObject toCbor() {
  final payloadBytes = payload.serialize();
  return CborListValue.fixedLength([
    CborTagValue(payloadBytes, [ADAByronAddrConst.payloadTag]),
    CborIntValue(Crc32.quickIntDigest(payloadBytes)),
  ]);
}