To address the trust problem between transaction subjects in the current cloud manufacturing system, this paper combines blockchain technology with cloud manufacturing system, proposes a cloud manufacturing system architecture incorporating blockchain technology, designs a manufacturing resource matching algorithm within a smart contract, constructs an optimal scheduling model with minimum time, minimum cost, highest qualification rate and highest trust, and uses NSGA-II algorithm to solving. Finally, the efficiency of resource scheduling efficiency between transaction subjects under the cloud manufacturing environment based on blockchain technology while maintaining absolute trust is demonstrated experimentally.