For given $D \in \mathbb{R}^{N\times M}$, $\psi\in \mathbb{R}^M$ and $s^0 \in \mathbb{R}^N$, I have the following relationship for all $h\in\mathbb{R}^N$: $$ h^T s^0 = h^TD\psi$$
Does it imply that: $$ s^0 = D\psi$$
I want to say yes, but can't seem to write a valid proof.
Just take $h=s_0-D\psi$. You get that $0=h^T(s_0-D\psi)=\|s_0-D\psi\|^2$. Hence $s_0-D\psi=0$.