This is an implementation of the SG-PBFT protocol proposed in the paper: Xu, Guangquan, et al. "Sg-pbft: a secure and highly efficient blockchain pbft consensus algorithm for internet of vehicles." arXiv preprint arXiv:2101.01306 (2021).