This is a minimalist and yet complete implementation of Shamir's Secret Sharing Algorithm as described in 1. The goal is to provide a generic and efficient implementation.
Python 3 (tested with Python 3.8.10)
In case of bugs/questions, contact me on Github
Adi Shamir, "How to share a secret", Communications of the ACM 22(11):612-613. doi:10.1145/359168.359176