I would like to make a few questions about Shamir's secret sharing scheme and. To begin with, I am starting with the next theorem that determines the intuition of the whole theorem.
$\textbf{Theorem:}$ Let $p$ be a prime, and let $\{(x_1,y_1), . . . ,(x_{t+1},y_{t+1})\}\subseteq\mathbb{Z}_p$ to be a set of points whose $x_i$ values are all distinct. Then there is a unique degree-$t$ polynomial $f$ with coefficients from $\mathbb{Z}_p$ that satisfies $y_i \equiv_p f(x_i)$ for all $i$ (I would add to the theorem where $s=f(0)$).
As we already know in a $k$ out of $n$ secret sharing scheme, each agent splits the secret in $n$ parts however only $k=t+1$ parts (of a polynomial of degree $t$) are needed if we want to compute the secret. Suppose that $f$ is the polynomial function such that
$$f(x)=a_tx^t+a_{t-1}x^{t-1}+\cdots+a_1x+a_0=s+\sum_{i=1}^ta_ix^i,\quad\text{such that $y_i \equiv_p f(x_i)$ and $s=f(0)$}\quad (1)$$
- When we say that a dealer shares the secret does this mean that every player takes a pair of $(x_i,f(x_i))$ such that $y_i \equiv_p f(x_i)$ from the $n$-pairs, namely $i=1,2,3...,n$? If we have more pairs of points of those needed by the theorem to construct the polynomial function $(1)$ what becomes with the rest of them? I don't get it.
- All these $t+1$ pairs are chosen randomly to reconstruct the secret in the reconstruction phase or they collude? Could anybody show the mathematical formulations form the point that $f$ is chosen to the reconstruct $s$ based on the theorem?