static Bytes encodeTrieValue(final Bytes bytes) {
    final BytesValueRLPOutput out = new BytesValueRLPOutput();
    out.writeBytes(bytes.trimLeadingZeros());
    return out.encoded();
  }
Retrieve all the storage values of an account.

@param address the account to stream
@param rootHash the root hash of the account storage trie
@return A map that is a copy of the entries. The key is the hashed slot number, and the value
    is the Bytes representation of the storage value.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/worldview/PathBasedWorldView.java