public Bytes encode(final BftExtraData bftExtraData) {
    return encode(bftExtraData, EncodingType.ALL);
  }
Encode.

@param bftExtraData the bft extra data
@return the bytes
consensus/common/src/main/java/org/hyperledger/besu/consensus/common/bft/BftExtraDataCodec.java