A blockchain and secure multi-party computation-based transaction method and apparatus, and a storage medium. The method is applied to any blockchain node of a blockchain network, and a privacy contract is deployed at the blockchain node. The method comprises: receiving a data transaction request initiated by a data demander, the data transaction request carrying a contract identifier, a computation method identifier, a pledge transaction amount, and a public key of the data demander (S701); loading a private contract corresponding to the contract identifier (S702); sending a data transaction notification to a plurality of computing nodes appointed in the private contract to coordinate the plurality of computing nodes to perform secure multi-party computation according to the computation method identifier (S703); receiving a ciphertext computation result returned by one of the plurality of calculation nodes; encrypting the ciphertext computation result by using a public key (S704); and storing the ciphertext computation result in the private contract, and performing transaction settlement on the basis of a charging rule and a transaction amount configured in the private contract (S705). The security of private data transactions can be improved.
展开▼