Q: Let $\{P_1, P_2\}$ be a basis for $E[m]$. The Basis Problem for $\{P_1, P_2\}$ is to express an arbitrary point $P \in E[m]$ as a linear combination of the basis vectors, i.e., to find $n_1$ and $n_2$ so that $P = n_1 P_1 + n_2 P_2$. Prove that an algorithm that solves the basis problem for $\{P_1,P_2\}$ can be used to solve the ECDLP for points in $E[m]$.
(First, quick question, is $E[m]$ just an elliptic curve over any finite field $m$?)
My Work:
The ECDLP problem is given points $P, Q$ where $Q \in \left<P \right>$, solve for $n$ such that $nP = Q$
If we have a solution to the Basis Problem then we can express:
$P = n_{p_1} P_1 + n_{p_2} P_2$
$Q = n_{q_1} P_1 + n_{q_2} P_2$
then we want to solve for $n$ in
\begin{align*} nP &= Q \\ n \cdot \left(n_{p_1} P_1 + n_{p_2} P_2 \right) &= n_{q_1} P_1 + n_{q_2} P_2 \\ (n \cdot n_{p_1} - n_{q_1}) P_1 + (n \cdot n_{p_2} - n_{q_2}) P_2 &= \mathcal{O} \\ \end{align*}
I'm stuck on what to do next.