@Override
  public BigInteger getYParity() {
    if (transactionType != null && transactionType != TransactionType.FRONTIER) {
      // EIP-2718 typed transaction, return yParity:
      return BigInteger.valueOf(signature.getRecId());
    } else {
      // legacy types never return yParity
      return null;
    }
  }
Writes the transaction to RLP using the specified format

@param out the output to write the transaction to
@param context the serialization format to use
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Transaction.java