Implemented (k, n) Shamir’s Secret Sharing (SSS) scheme, i.e. both share preparation and reconstruction.