static void writeSignatureAndRecoveryId(final Transaction transaction, final RLPOutput out) {
    out.writeIntScalar(transaction.getSignature().getRecId());
    writeSignature(transaction, out);
  }
Encodes a transaction into opaque bytes.

@param transaction the transaction to encode
@param encodingContext the encoding context
@return the encoded transaction as bytes
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/encoding/TransactionEncoder.java