Let $f(n)$ be minimal such that there exist $n$ $\{0,1\}$-sequences of length $f(n)$ such that any pair has a unique hamming distance. What is the asymptotic behaviour of $f(n)$?
I have calculated $f(1)=0$, $f(2)=0$, $f(3)=3$, $f(4)=6$, $f(5)=11$.
For $n\geq3$ all sequences need to be distinct and we need $\binom{n}2$ different hamming distances, so we get $f(n)\geq\binom{n}2$.
I found the following construction giving $f(n)<\frac13n^3$ for $n\geq3$.
Consider finding as many $\{0,1\}$-sequences of length $k$ as possible such that each pair has a unique symmetric difference. Say that we already have $\ell$ such sequences. We can then add some sequence $x$ if and only if we do not already have sequences $x_1$, $x_2$, $x_3$ such that $x_1\oplus x_2=x_3\oplus x$. This is equivalent to $x_1\oplus x_2\oplus x_3=x$. There are at most $\ell+\binom\ell3$ different sequences of the form $x_1\oplus x_2\oplus x_3$, so as long as $\ell+\binom\ell3<2^k$ there exists some sequence that we can add. Therefore, if $n-1+\binom{n-1}3<2^k$ then there exists a set of $n$ $\{0,1\}$-sequences of length $k$ such that each pair has a unique symmetric difference. Note that $n-1+\binom{n-1}3<\frac16n^3$ for all integers $n$, so $\frac16n^3\leq2^k$ suffices.
Let $k:=\lceil\log_2(n^3/6)\rceil$. Then $\frac16n^3\leq2^k<\frac13n^3$, so there exist $n$ $\{0,1\}$-sequences $x_1$, ..., $x_n$ of length $k$ such that each pair has a unique symmetric difference. For each sequence $x_i=(b_0,...,b_{k-1})$ we let $y_i$ be the sequence starting with $1$ times $b_0$, then $2$ times $b_1$, then $4$ times $b_2$, up until $2^{k-1}$ times $b_{k-1}$. Then it follows that each pair of such sequences has a unique hamming distance. Since we have $n$ sequences of length $2^k-1$, we get $f(n)\leq2^k-1<\frac13n^3$.
This is a very open ended question, so let me be precise about when I will accept an answer. Whenever a new upper or lower bound is proven such that the ratio with the old bound tends to infinity, I consider this an improvement of our understanding. The first answer to improve our understanding will be accepted. Any further improvements to our understanding I plan to give bounties.
EDIT: So we now know that $\limsup f(n)/n^2\leq1$ and $\liminf f(n)/n^2\geq\frac12$. If either of these values can be determined, I will give a bounty.
Here's an upper bound of $n^2-n+1$ for certain $n$. One can get an upper bound of $(1+o(1))n^2$ from this bound, since it holds for $n$ one more than a prime.
Let $n$ be such that $n-1$ is a prime power, and let $k = n^2-n+1$. Then there is a perfect difference set $C \subseteq \mathbb{Z}_k$ of size $|C| = n$. Let $E = \{1,\dots,\frac{k-1}{2}\}$. Let $A_1,\dots,A_n = \{c+E : c \in C\}$ be subsets of $\mathbb{Z}_k$. If we let $x_1,\dots,x_n \in \{0,1\}^k$ be $A_1,\dots,A_n$ viewed as subsets of $[k]$, then since the $A_i$'s have the same size, to show that pairs of $x_i$'s have different Hamming distances, it suffices to show that $A_i\cap A_j$ for $i < j$ have different sizes. But just note $|(c+E)\cap (d+E)| = |(c-d+E)\cap E|$ is $\frac{k-1}{2}-(c-d)$ for $c-d \in \{1,\dots,\frac{k-1}{2}\}$.