This code is based on the implementation of Paillier Threshold Encryption Scheme from UTDallas, and both implementations are based on the paper from Ivan Damgård et al. A Generalization of Paillier's Public Key System with Applications to Electronic Voting.
Due to Golang extensive standard library, this implementation does not have external requirements (obviously aside of Golang, version 1.13 or above).
To use the library with a module-enabled go project, you must write the following line on a terminal on the root file of the project.
go get https://github.com/niclabs/tcpaillier
To run the tests you just need to use go test:
go test github.com/niclabs/tcpaillier