In the microgrid day-ahead market Peer-to-Peer (P2P) transaction, the uniform-price double auction mechanism has advantages in the microgrid day-ahead market because it can prevent power price fluctuations during the one hour trading period, and give priority to trading Distributed Energy Resources(DERs) based on trading volume, which is conducive to the consumption of new energy. In this kind of transaction, aiming at the problem that the attacker can obtain the privacy information such as the collection and payment address and transaction amount of the producer and consumer through the account book information on the blockchain, so that the relationship between the producer and consumer and the payment behavior is subject to inference attacks, and thus the identity of the participants is inferred, a privacy protection scheme based on linkable ring signature for user payment of P2P uniform-price double auction transaction in the microgrid day-ahead market is proposed. This scheme has the following novelty and contribution: Firstly, the linkable ring signature is used to sign the one-time account address and payment information of the producer and consumer, which ensures the untraceability of transaction payment in the case of anonymity of the producer and consumer, and it has low computational cost; Secondly, in order to hide its real output address, destroy the association between the input address and the real output address, and provides the unlinkability of transactions, the one-time address is proposed; Finally, a one-time address generation method based on elliptic curve is designed, and point multiplication is used to improve the efficiency of address generation. Theoretical analysis proves that the scheme is untraceable and unlinkable while ensuring privacy. Experiments show that this scheme has lower computational cost.