public static Bytes encodeOne(final Bytes value) {
    if (RLPEncodingHelpers.isSingleRLPByte(value)) return value;

    final MutableBytes res = MutableBytes.create(RLPEncodingHelpers.elementSize(value));
    RLPEncodingHelpers.writeElement(value, res, 0);
    return res;
  }
Encodes a single binary value into RLP.

<p>This is equivalent (but possibly more efficient) to:

<pre>
{
  &#64;code
  BytesValueRLPOutput out = new BytesValueRLPOutput();
  out.writeBytes(value);
  return out.encoded();
}
</pre>

<p>So note in particular that the value is encoded as is (and so not as a scalar in
particular).

@param value The value to encode.
@return The RLP encoding containing only {@code value}.
ethereum/rlp/src/main/java/org/hyperledger/besu/ethereum/rlp/RLP.java