Low cost, high efficiency, price transparency, and timely settlement of transactions are required for direct transactions between electricity providers and consumers in the microgrids. So the blockchain technology and the continuous double auction mechanism for direct electricity trading have always been a hot topic in the field of microgrids.In order to further reduce the transaction cost of blockchain and increase the transaction efficiency, and to solve the problem of lack of privacy protection for continuous double auction in the existing scheme, a privacy protection scheme of microgrids direct electricity transaction based on consortium blockchain and the continuous double auction is proposed. In it, the combination of consortium blockchain technology and continuous double auction mechanism is applied to reduce costs and improve the efficiency of transactions. In the meanwhile, pseudonyms and pseudonym certificates are generated by fair blind signature technology to realize identity privacy in the continuous double auction. And decentralization and user identity traceability are achieved by using (t, n) threshold secret sharing technology which distributes and recovers the private key of a trusted third party. The theoretical security analysis shows that the privacy protection scheme has higher security. The simulation experiment shows that the consortium blockchain technology has lower cost and higher efficiency in this scheme. INDEX TERMS Microgrid electricity trading, consortium blockchain, fair blind signature, (t, n) threshold secret sharing, privacy protection.